Hi everyone.
I am working on a spreadsheet (I call it Margin Monitoring, or MM) which will automatically look through two different workbooks (Billing and Pricing) for changes.
The information from Billing workbook is the latest information, that needs to be updated into the Pricing workbook.
In summary, MM will ask for a Billing file to open, from which it will copy everything and paste it in a new worksheet in MM. It will then cycle through a user-defined folder of Pricing workbooks to update.
I am using VBA Vlookup to look for the changes, and I am using concatenating to do this. For both Billing and Pricing workbooks, I will concatenate the 3 columns needed to lookup the correct value.
Funny thing is, it seems to be working fine at first, but now it is totally broken, stuck at Vlookup and giving me that 1004 runtime error or just skipping all the reminding code altogether. I then opened up another module within the worksheet with just the Vlookup code along with the necessary variable declarations...and it works fine. The EXACT same code fails in the main module however...
I have read up on 1004 and set in On error handlers to process #N/A responses. But I'm still stuck....and pulling my hair for this!
Please advice. stated below is the section of the code I am having trouble with, along with all the variable declarations.
I have also attached the files needed.
-------------------------------------------------
Bookmarks