Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default setting an excel file to read-only

hi.

how can i save an excel file to be read-only?, i have used the SaveAs
meathod with the ReadOnlyRecommended property set to true
but when i open this file i get a message box that allows we to choose
if the file will be read-only or not.

how can i keep this file read-only all the time? i use vb6 on win2k and
with office 2k and the file the user is opening is a backup file that i
created, the use of this file is if the user wants to see the original
report he can view the file but i want to prevent him from changing the
backup file and thinking that the data in the DB has changed as well.
thanks in advance
gil eiliya.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default setting an excel file to read-only

On that same dialog where you specified read-only recommended, you can specify a
"password to modify".

If the user doesn't have this password, they can only open it readonly.

There's a password to open that you probably don't want to use (in this
situation).

But keep a copy.

The user could open it, change it, save it as a new name, delete the old
version, and replace it with the changed version.

If you really want to stop the users from changing it, you could ask your IT
folks for a share that only you have write access to. But allow others to read
files there.



wrote:

hi.

how can i save an excel file to be read-only?, i have used the SaveAs
meathod with the ReadOnlyRecommended property set to true
but when i open this file i get a message box that allows we to choose
if the file will be read-only or not.

how can i keep this file read-only all the time? i use vb6 on win2k and
with office 2k and the file the user is opening is a backup file that i
created, the use of this file is if the user wants to see the original
report he can view the file but i want to prevent him from changing the
backup file and thinking that the data in the DB has changed as well.
thanks in advance
gil eiliya.


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting everyone to read ony Lorne Excel Discussion (Misc queries) 3 November 27th 06 11:11 PM
How do you save an excel file to be read as IBM-type text file ? Dee Franklin Excel Worksheet Functions 2 October 10th 06 02:46 AM
How do i remove READ ONLY setting on a file? Andrea Excel Discussion (Misc queries) 1 March 14th 06 12:57 PM
Pasword protected Excel file encrypted, how do I read this file? jonesteam Excel Discussion (Misc queries) 2 December 12th 05 06:32 PM
"Unable to read file" error message when opening a Excel file that contains a PivotTable report. Tim Marsden Charts and Charting in Excel 2 October 15th 05 02:10 PM


All times are GMT +1. The time now is 09:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"