To start off, I have found this answer on several different forums, all the answers are the same, but I cannot get it to work.
I have a set of data from column A through column T with the number of rows varying based on report ran. I need to paste a formula in U2 and have it paste all the way down to the last row of data in column T. Column T never has blanks in it so the formula should work. What am I doing wrong?
Sheets("Data Dump").Select
Range("U2").Select
ActiveCell.FormulaR1C1 = _
"=IF(ISNA(VLOOKUP(RC[-18],'2016 Claimed Cost Centers'!C[-20],1,FALSE)),""N"",""Y"")"
Range("U2").Select
Selection.AutoFill Destination:=Range("U2:U" & Cells(Rows.Count, "T").End(x1Up).Row) '''Here is where it errors out
Columns("U:U").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
I have a set of data from column A through column T with the number of rows varying based on report ran. I need to paste a formula in U2 and have it paste all the way down to the last row of data in column T. Column T never has blanks in it so the formula should work. What am I doing wrong?
Sheets("Data Dump").Select
Range("U2").Select
ActiveCell.FormulaR1C1 = _
"=IF(ISNA(VLOOKUP(RC[-18],'2016 Claimed Cost Centers'!C[-20],1,FALSE)),""N"",""Y"")"
Range("U2").Select
Selection.AutoFill Destination:=Range("U2:U" & Cells(Rows.Count, "T").End(x1Up).Row) '''Here is where it errors out
Columns("U:U").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False