Hello
I'm trying to modify these line of Script :
But I would Like to Match with a column name "Previous_OnPrem" Sheet.
I've the following, but it's not working tried :
"Date" Being the column name on the "Previous_OnPrem" sheet.
Also, I'm not sure if the name on column Must be the exact same on both sheets, But I have several column to match in several sheets, and Column names aren't always the same.
Thanks
I'm trying to modify these line of Script :
VBA Code:
Sheets("OnPrem").Select
Range ("A2").Select
ActiveCell.Value = "=IFERROR(VLOOKUP(" & "G2" & ",Previous_OnPrem!A:J,2,0),"""")"
ActiveCell.AutoFill Destination:=Range(ActiveCell.Address & ":" & "A" & RowCount)
But I would Like to Match with a column name "Previous_OnPrem" Sheet.
I've the following, but it's not working tried :
VBA Code:
ActiveCell.Value = "=IFERROR(VLOOKUP(" & "G2" & ",Previous_OnPrem!A:J,MATCH("Date",Previous_OnPrem!A:J,0)),"""")"
ActiveCell.AutoFill Destination:=Range(ActiveCell.Address & ":" & "A" & RowCount)
"Date" Being the column name on the "Previous_OnPrem" sheet.
Also, I'm not sure if the name on column Must be the exact same on both sheets, But I have several column to match in several sheets, and Column names aren't always the same.
Thanks