Long Story Short - or atleast as best I can !
A macro creates a Workbook and saves it as WORK ORDER X, PART X, PRODUCTION.xlsm on a Shared Drive. The Work Order and Part# will always be variables as the same Master Workbook is used for several different models.
Example: In the Summary Folder, I may have the following files:
WORK ORDER 12345, PART MM176, PRODUCTION.xlsm
WORK ORDER 45678, PART MM123, PRODUCTION.xlsm
At the end of the Work Order, the users presses a button to resave file as WORK ORDER X, PART X, REWORK.xlsm to alert the shift leader that production is complete and reworks can be started.
The only problem is this leaves the original PRODUCTION.xlsm file in the folder still and creates confusion. I need the PRODUCTION.xlsm to be deleted when the .REWORK.xlsm is created and I end up with:
WORK ORDER 12345, PART MM176, PRODUCTION.xlsm
WORK ORDER 45678, PART MM123, PRODUCTION.xlsm
WORK ORDER 45678, PART MM123, REWORK.xlsm
I want to delete the old PRODUCTION.xlsm through a macro which can be stored in the PRODUCTION Workbook so the Shift Leader does not have to go in and remove the old .PRODUCTION.xlsm file. I do not want to move it to a different folder for 2 reasons - 1) I want the Shift Leader to be able to go in to one folder and find everything he needs - Both the .PRODUCTION and REWORK files (computer illeterate but getting better), 2) I do not want duplicate files created.
Maybe I am looking at this from the wrong angle, it should be simple but.....the fact that it saves based on a variable has me spun! Have attached code below. Please tell me this is easier than I making it out to be!
HTML Code:
Bookmarks