OK, I figured out how to step through the macro with the debug utility, and am starting to understand the code a bit better.
To get things going, using my example, I copied the NETWORK_ID column from the PS worksheet to column M of the ITIM worksheet (later, I'd like to learn how to do this search between the two worksheets to avoid this step). The header is in row 9 like the others. I created the macro as follows:
In stepping through the debug process, I noted that the reference_value never changed. It checks only the 1st cell on the list/column (M9). As this is the header, I obviously need to change it to M10. Next, I need to change the If-Then statement so that after running through the potential match list, the reference_value moves to the next cell down. I assume this would be done by reusing the code found in the lastrow_lookup variable?
***Update***
Found my problem, though don't know how to fix.
This points to column A rather than column B. Column B has the network IDs, so this is where the possible matches exist. How do I change this line accordingly?
Bookmarks