susuye

要求:若A列满足值为c,则将b列对应的内容背景色调为红色,并提取出来:

代码如下:

Sub naqu()
Dim i As Integer
For i = 2 To Range("a65536").End(xlUp).Row

If Cells(i, 1) = "c" Then
n = n + 1
Cells(i, 2).Interior.Color = 666
Cells(n, 3) = Cells(i, 2)

End If
Next

End Sub

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-01-19
  • 2021-09-03
  • 2021-11-26
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2021-08-28
  • 2021-04-02
相关资源
相似解决方案