Eurekaonide
Active Member
- Joined
- Feb 1, 2010
- Messages
- 433
Hi
Please can you help. I have a set of data in one sheet that I want to run down Column A and use the value in each cell to lookup via a filter in another sheet.
If I run the record macro it specifies the actual data but this data can be different all the time, so how would I reference this?
i.e Call A2 currently states my Name "Kellyn" but next time it could be "Joe" in A2 that I want to look up.
Please can you help. I have a set of data in one sheet that I want to run down Column A and use the value in each cell to lookup via a filter in another sheet.
If I run the record macro it specifies the actual data but this data can be different all the time, so how would I reference this?
i.e Call A2 currently states my Name "Kellyn" but next time it could be "Joe" in A2 that I want to look up.
VBA Code:
Sub Macro1()
Range("A2").Select
Selection.Copy
Sheets("JustOurs_tmp").Select
ActiveSheet.Range("$A$2:$BB$1453").AutoFilter Field:=1, Criteria1:= _
"Kellyn"
ActiveWindow.SmallScroll Down:=-15
Range("A741").Select
End Sub