Enabling Read/Write Permissions

Gtabtr1

New Member
Joined
Feb 15, 2017
Messages
39
I have vba code that performs a Save As, creating and naming new files. The new files should not have any read/write restrictions. They should be available for anyone to open, read and make changes. What should the code say to remove read/write restrictions on the new files?

Thank you
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

mrmmickle1

Well-known Member
Joined
May 11, 2012
Messages
2,461
Here are a few examples of how SaveAs Works.

VBA Save File - 20 Easy Examples - VBA Code Examples

If you are trying to save a file that is currently password protected you can use a blank password argument i.e.

Code:
Password:=""

For Write Reservation Password Argument is:
Code:
[I]WriteResPassword:=""[/I]

Here are the arguments to the SaveAs Method: Workbook.SaveAs Method (Excel)

maybe try something like this:

Code:
ActiveWorkbook.SaveAs Filename:="My Filename", Password:="", WriteResPassword:=""
 

Watch MrExcel Video

Forum statistics

Threads
1,133,654
Messages
5,660,140
Members
418,553
Latest member
judithcatherine

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
Top