Wow that was very close. The script produced an out of range error and point to this line of code:
But, before it did It gave me this output on each sheet:
Loc1:
Loc2:
Loc3:
It looks like is breaking when it hits the s/n's for prt3. If we can fix that and polish the code just a bit. Can we set the output to start on a specific cell that way each time the script is run it will overwrite the previous output. Then have the script clear all the cells in the output sheet below its last position before going to the next location. Lastly, the names in my real sheet unfortunately are not as friendly as PrtX. However I can place a "P" as the begining character on eash worksheets name and then have the script get the part name from a specific cell on the part sheet. In the case of the example...A7.
I feel like Columbo, oh and one more thing..... can you recomend a good resource for learning the methods that excel uses?
Thanks again for all your help.
edit- I found out what was breaking the script. Apparently you cannot have any empty data validated cells at the end of a list for this script to work. I had a row of empty list cells at the end of the Prt2 workseet list and a row at the end of Prt3. Deleting the row in the Prt2 let the script continue and get all of the Prt3 parts listed then broke at the end of it. Kill that row in the Prt3 workseet let the script continue to its natural end.
BTW, how is it determining what Loc workseet to dump the output to. Just like my part names, my location names are not as nice as LocX. Can you point me to the line that matches the Location selection to the location worksheet?
Bookmarks