I'm working my way down a worksheet collection information, so my starting point changes every time I run the code.
Here is the example that is not working:
irow = ActiveCell.Row
Range("A" & irow).Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[16],'Cross Data'!C[-4]:C[-2],3,FALSE)"
Dim lastrow As Long
lastrow = Range("B" & Rows.Count).End(xlUp).Row
Range("A" & irow).AutoFill Destination:=Range("A" & irow:A" & lastrow), Type:=xlFillDefault
Here is the example that is not working:
irow = ActiveCell.Row
Range("A" & irow).Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[16],'Cross Data'!C[-4]:C[-2],3,FALSE)"
Dim lastrow As Long
lastrow = Range("B" & Rows.Count).End(xlUp).Row
Range("A" & irow).AutoFill Destination:=Range("A" & irow:A" & lastrow), Type:=xlFillDefault