Thank you for the quick reply.
You suggestion appears to work great!
I would like to complicate things a bit. I have created another variable named JobNumber, this variable will be the folder name and the variable foldername will be the workbook name. This way there is only 1 folder for each job and all the Items for that job will go into that folder. This is what I have so far...
It appears to work fine except that if some one makes a mistake and tries to create 2 workbooks with the same name the excel error msg appears and says that a file with that name already exists,and would I like to replace it. That is all fine except no matter what I select(yes,no, or cancel) the code gets int interrupted and returns an error.
The error is "method of saveas workbook failed"
also 2 workbooks are created named book1 and book2. Is there a way I can cause it to return back to my original workbook to allow the user to make corrections? I hope this makes sense. Thank you for your time
Bookmarks