Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have written the code to save a file with a new name (copy file) but I need
to have this file opened as read-only so that no changes can be made to the file and then saved. ReadOnlyRecommended:=True gives the message that it is recommended that the file be opened as read only but gives the option of being opened so changes can be saved. Is there a way of saving as read only and no option when opening of making changes. Any help on this would be appreciated. Thanks Ray |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You could save the file and then mark it readonly either via windows explorer or
by using SetAttr in you code. Excel will respect that setting and won't bother the user with a prompt. Ray Clark wrote: I have written the code to save a file with a new name (copy file) but I need to have this file opened as read-only so that no changes can be made to the file and then saved. ReadOnlyRecommended:=True gives the message that it is recommended that the file be opened as read only but gives the option of being opened so changes can be saved. Is there a way of saving as read only and no option when opening of making changes. Any help on this would be appreciated. Thanks Ray -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dave,
Great help, thank you. Ray "Dave Peterson" wrote: You could save the file and then mark it readonly either via windows explorer or by using SetAttr in you code. Excel will respect that setting and won't bother the user with a prompt. Ray Clark wrote: I have written the code to save a file with a new name (copy file) but I need to have this file opened as read-only so that no changes can be made to the file and then saved. ReadOnlyRecommended:=True gives the message that it is recommended that the file be opened as read only but gives the option of being opened so changes can be saved. Is there a way of saving as read only and no option when opening of making changes. Any help on this would be appreciated. Thanks Ray -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Open a read-only copy | Excel Discussion (Misc queries) | |||
How do you save an excel file to be read as IBM-type text file ? | Excel Worksheet Functions | |||
Autoname a save as file from a cell in a read only file | Excel Discussion (Misc queries) | |||
cant save read only file | Excel Discussion (Misc queries) | |||
How to save a PC Excel file into MAC (it says file is read only)? | Excel Discussion (Misc queries) |