Hi Chris,
I think you could make the following change to the code that creates the source value in Column Z.
=IF(ISERROR(VLOOKUP(B3,Buy_Summary!$A$4:$R$10000,17,False)),"",VLOOKUP(B3,Buy_Summary!$A$4:$R$10000,17,False))
This will place a blank cell (nul from the "") where the value in B3 is not found instead of the #N/A. This should solve the problem.
Alternatively, in your macro you could add this bit of code just after you do the paste - :
I haven't tested it, but I think the selected range will be "held" after the PasteSpecial command.
This should replace all the #N/A's.
I hope this helps, please let me know!
Regards,
David
- Please click on the *Add Reputation button at the bottom of helpful responses.
Please mark your thread as SOLVED:
- Click Thread Tools above your first post, select "Mark your thread as Solved".
Bookmarks