I want this code to execute only for the data in worksheet 'User Sheet' from A2:A1001, however, i cant get it to work. It worked when i was running it for all sheets via the application function.
Please help 
Sub myfind()
Dim Message, Title, Default, SearchString
Message = "Enter your search string!" ' Set prompt.
Title = "Find Card Number On all sheets!" ' Set title.
Default = "" ' Set default.
' Display message, title, and default value.
SearchString = InputBox(Message, Title, Default)
'SearchString = "Rob"
Set S = ActiveSheet
For Each S In ActiveSheet
With S.Range("A2:A1001")
Set F = .Find(SearchString, MatchCase:=True, LookAt:=xlWhole, LookIn:=xlValues)
If F Is Nothing Then
Else
Location = F.Address
S.Select
Range(Location).Select
Exit For
End If
End With
Next S
Bookmarks