I am trying to modify it with below code but ran into a small problem with error '1004' - "Method 'Range' of object]_Global'failed'
I have my data IDs begining column B14. I use VLOOKUP in columns C and D.
Column E is empty
I am using VLOOKUP in column F
below is the code I modified. It is breaking on line:
Range("F14").AutoFill Destination:=Range("F14:B" & lastrow)
Range("F14").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-4],'Data'!C[-3]:C[23],27,0)"
Dim lastrow As Long
lastrow = Range("B14" & Rows.Count).End(xlUp).Row
Range("F14").AutoFill Destination:=Range("F14:B" & lastrow)
Range("F14").Select
I am hoping that it will autofill column F all the way down of column B..
Any suggestions would be greatly appreciated!
Thanks so much
Bookmarks