AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,120
- Office Version
- 2019
- 2010
- Platform
- Windows
VBA Code:
If lstYr > "" Then
Set rtracks = .Range("A1:S1").Find(What:="*" & Right(lstYr, 2) & "*", LookIn:=xlValues, LookAt:=xlPart)
For Each Found In rtracks
Debug.Print Found
Next
Stop
Else
Set rtracks = .Range("A2:S2")
For Each Found In rtracks
Debug.Print Found
Next
Stop
End If
Because the way rtracks is used, I need it to contain every instance. How might I do that ?