Hi, Katie,
I posted last week as this is to autopopluate cells based on the selection in cbo_CmpName and I was told the error was due to the code getting an empty cell from the VLOOKUP.
A link to that thread would have been helpfull.
If the person who delivered the answer has the same basic naming as I vRes is the result of the VLookUp and would either hold the value if the item is found or an Error.
AFAIK there is no VLookUp for teh Excel application but only the function that can be used as a WorksheetFunction. You could get help about the parameters on the OnlineHelp.
Your code needs to be restructured like this:
You could consider to work with a loop and arrays for holding the Columns as well as the ControlNames.
Ciao,
Holger
Bookmarks