Excel 2003:
Open Write Reserved Workbook (write reserved password) as Write Access without prompts
Is it possible to open a read only recommended file with code (in another workbook) in such a manner that it does not ask for a password (i.e. the code must supply the password) and
changes can be made to it, without the user being prompted at any time?
The file attribute does not indicate that is read only, and the following code does not help:
This line will get you past the password:
BUT you are then prompted to open the file as read only.
Removing the prompt by the following line results in opening the file, still as read only:
I can not get the macro to open the file with write access without any prompts.
I will appreciate any help and value your time.
Regards,
Poenankie
Open Write Reserved Workbook (write reserved password) as Write Access without prompts
Is it possible to open a read only recommended file with code (in another workbook) in such a manner that it does not ask for a password (i.e. the code must supply the password) and
changes can be made to it, without the user being prompted at any time?
The file attribute does not indicate that is read only, and the following code does not help:
Code:
SetAttr "ReadOnlyFile.xls", vbNormal
This line will get you past the password:
Code:
Workbooks.Open Filename:="ReadOnlyFile.xls", WriteResPassword:="Wagwoord"
BUT you are then prompted to open the file as read only.
Removing the prompt by the following line results in opening the file, still as read only:
Code:
Application.DisplayAlerts = False
I can not get the macro to open the file with write access without any prompts.

I will appreciate any help and value your time.
Regards,
Poenankie