Hi I recorded the following macro:
Sub Macro2()
'
' Macro2 Macro
'
'
Selection.Copy
Sheets("Data").Select
ActiveSheet.Range("$A$1:$AJ$2958").AutoFilter Field:=19, Criteria1:= _
"114112"
Sheets("Data Source").Select
Range("C2").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=Data!R[2929]C[28]"
Range("C3").Select
End Sub
So on my worksheet: A2= 114112
Now I need the macro to loop for every row. As in, automatically select the number in A3, go look it up in the filter in data tab, grab the appropriate cell and come back and paste in current worksheet.
If someoone could help me out I would really appreciate it.
Thank You!!
Sub Macro2()
'
' Macro2 Macro
'
'
Selection.Copy
Sheets("Data").Select
ActiveSheet.Range("$A$1:$AJ$2958").AutoFilter Field:=19, Criteria1:= _
"114112"
Sheets("Data Source").Select
Range("C2").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=Data!R[2929]C[28]"
Range("C3").Select
End Sub
So on my worksheet: A2= 114112
Now I need the macro to loop for every row. As in, automatically select the number in A3, go look it up in the filter in data tab, grab the appropriate cell and come back and paste in current worksheet.
If someoone could help me out I would really appreciate it.
Thank You!!