我在VBA中有一个包含字符串的数组。我需要使用Array单元格中的查找函数,这样无论何时找到该值,行中相应的单元格都会被复制到另一个Sheet中。
Dim Rng As Range
Dim process() As Variant
Set sh = ThisWorkbook.Sheets("Data")
Set hc = ThisWorkbook.Sheets("Hourly Cuts")
Set ds = ThisWorkbook.Sheets("Downtime Summary")
Set Summary = ThisWorkbook.Sheets("summary")
ds.Activate
process = Range("V2", Selection.End(xlDown))
a = sh.Range("R1")
For i = 1 To a
If ds.Range("F", i + 3) = process Then Summary.Range("B", i + 6) = 1
End If
Next i
End Sub
如何使用vba使用查找功能?