Hi all,
Please advise what I am doing wrong.
In column Z I want to add the following formula which looks up values in sheet "Jan 18"
=IF(ISERROR(VLOOKUP(A2,'Jan 18'!A:A,1,FALSE)),"New Employee","OK") and works ok as a formula in the spreadsheet, but as soon as I put it in vba code it gives a syntax error:
With ActiveSheet.Range("Z2:Z" & LastRow)
.Formula = "IF(ISERROR(VLOOKUP(A2,'Jan 18'!A:A,1,FALSE)),"New Employee","OK")"
End With
Thanks!
Bookmarks