Forum Discussion

hrh_dash's avatar
hrh_dash
Iron Contributor
Aug 25, 2022
Solved

Macro to vlookup from a list if specific text is met

I would like to create a macro to vlookup from a list if specific text is met. However, when i execute the macro, the error msg was popped up: "Run-time error '1004' Application or Object-defined err...
  • HansVogelaar's avatar
    HansVogelaar
    Aug 25, 2022

    hrh_dash 

    Thank you. As I mentioned, DC2_startrow and DC2_lastrow are row numbers on the source sheet.

    You use them as row numbers on the destination sheet. That makes no sense.

    Can you explain in words what you're trying to accomplish with this macro (which belongs in a standard module, by the way, not in a worksheet module)?

Resources