Hi michson. Thanks for the reply. I have changed the code according to your corrections. This time the value changed to empty cell. The designated cells which are supposed to have values are empty and the remaining cells that exceeds the the table shows up with #NA.
targetSheet.Cells(i, 11).formula = "=VLOOKUP(" & targetSheet.cells(i, 2) & ",sourceSheet!R16C1:R55C9, 9, False)"
Also, I am not sure what I should set the variable to? Could you please give me some pointers to that? Sorry about this as I am quite new to VBA.
Thank you very much.
Bookmarks