You want ONE macro to open 400 workbooks stored in one folder...save out each sheet in each workbook with a different unique name? That's not as hard as it sounds.
What would you like the saved sheets to be called? We can sequence them with any name you wish. We need to select something that won't allow duplicate names to occur, so probably best not to base the new workbook names on the individual sheetnames, if that's ok.
If you provide:
1) Path name to the folder holding the 400 workbooks
S:\Production\Public\Foreign Matter Log
2) Path name to the folder where you want the new workbooks saved to, it should be different from the path above just to insure there are no conflicts.
S:\Production\Public\Foreign Matter Log\Grade Inspections\
3) The naming convention you want to use for the new workbooks. Something like "Name_of_Worksheet_0001" then just number them sequentially.
This part doesn't really matter as SAS just uses a llist of filenames and opens each sheet one by one, takes what it wants then closes it again.[/QUOTE]
Much appreciated.