Save or Copy file into new folder and mark original as read only

StewartS

Board Regular
Joined
Feb 24, 2002
Messages
217
Hi

I have a process where a user submits a copy of a file AAA.xlsm to a new folder using a macro, where it is saved with the name as AAA Final.xlsm. Following on from this the original file is then saved as read only with password protection.

The original file has 8 worksheets in it some of which are hidden and two contain tables. When I tried to group the sheets to copy them to a new file I was unable to do so as it doesn't appear to be possible to group sheets with tables in them.

It looks like the only way I can do this is to copy each sheet individually into a new workbook and then save that with the new name. The hidden sheets will be veryhidden and I know I will need to unhide them before copying them. I am anticipating that the users will only have permission to write to this folder as there is no need for them to see the new file once it has been saved.

Alternatively is there a way of saving the file and then returning to the original file.

Thanks

StewartS
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,215,863
Messages
6,127,391
Members
449,382
Latest member
DonnaRisso

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top