G
Guest
Hi,
Is there a way to do the below implicitly in a loop or as array? Thank you!
Dim States As Range
Dim Alaska As Range, Alabama As Range, Arizona As Range 'etc
Set States = Range("a2:a51")
With States
Set Alaska = .Cells.Find("Alaska", lookat:=xlWhole, MatchCase:=False)
Set Alabama = .Cells.Find("Alabama", lookat:=xlWhole, MatchCase:=False)
'...
'..
'etc
End With
Is there a way to do the below implicitly in a loop or as array? Thank you!
Dim States As Range
Dim Alaska As Range, Alabama As Range, Arizona As Range 'etc
Set States = Range("a2:a51")
With States
Set Alaska = .Cells.Find("Alaska", lookat:=xlWhole, MatchCase:=False)
Set Alabama = .Cells.Find("Alabama", lookat:=xlWhole, MatchCase:=False)
'...
'..
'etc
End With