Good morning I am trying to run this code, and it errors with the message
Run Time Error 1004. Can somebody please help me identify why?
Thank you Richard Baker
Run Time Error 1004. Can somebody please help me identify why?
Thank you Richard Baker
Code:
Sub Lookup()
Sheets("Summary").Select
Dim CurRow As Integer
CurRow = 1
For Each Y In Range("A" & CurRow, Range("A" & CurRow).End(xlDown))
If Y = "" Then Exit For
Y.Offset(0, 1).Formula = "=VLOOKUP(A " & CurRow & ", Data!$A:$H , 2, FALSE)"
CurRow = CurRow + 1
Next
'Reset Header
Range("B1").Value = "FIN WOID"
End Sub