John,
That works really well but I'm trying to figure out how to change a few things - First, I realized that one of the parts doesn't have "BW" in the name, it could end up to be more than just that one so I thought I'd try using the sheet index number instead of the name. Everything past sheet number 9 should be evaluated and I'll always add parts after sheet 9 so that's pretty safe. Second, the first row should be ignored as it contains field info for merging into a Corel file - I would just subtract the number of fields in that first row from "x" but that varies per part. Last, I would prefer to have the page name and quantity in separate cells - it would be ideal to specify where to place each individual page name/value based on the existing spreadsheet, but I'll modify the spreadsheet to accommodate the results of this code instead.
So, to that end I have tried the following but keep getting errors and I don't know how to correct it... The error is "Object Variable or with block variable not set". Obviously I know just enough about VB to get myself into trouble, then I need to find an expert to get me out of it.
here is the code I changed to try and get the counts from sheets with an index of 9 or higher. It does go to sheet 9 and then gives the error - I'm close!
Bookmarks