If I use a for i = 1 to 1000
, how do I use the Cell.Find
function to search for the value of i
in my sheet?
I need to check if any of the numbers from 1 to 1000 are in the sheet (or row...doesn't matter). Preferably using the for loop.
I've done the following:
Dim i As Integer
For i = 1 To 10
Cells.Find(What:="i", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _, SearchFormat:=False).Activate
Next i
End Sub