Sub Find_Num()
For Each Found_Num In Worksheets(2).Range("A1:F3")
For Each Data In Worksheets(1).Range("A1:AI20")
If Data.Value = Found_Num Then
Data.Interior.ColorIndex = 3
End If
Next Data
Next Found_Num
End Sub
--------------------------------------------------------------------------------------------------
如果要改成
Worksheets(2).Range("A1:F1")对应Worksheets(1).Range("A1:AI5")
Worksheets(2).Range("A2:F2")对应Worksheets(1).Range("A6:AI10")
Worksheets(2).Range("A3:F3")对应Worksheets(1).Range("A11:AI15")
.........
.........
以此類推