ChangeFileAccess
- From: Joo <Joo@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 26 May 2005 12:56:01 -0700
I made a .xls file a readonly file by making it readonly from the properties.
However, when I send this through e-mail and the user detach it from the
e-mail, it becomes writable.
So I put a code in Thisworkbook.Open
ActiveWorkbook.ChangeFileAccess Mode:=xlReadOnly
If I do that, when I open up the file, it changes itself to readonly but it
will ask you if I want save changes before swithcing file status. I don't
want the user to see this pop up window. Is there anyway to by pass this or
even better way to make the file readonly when the user open it?
Thank you for your help in advance.
ps. I'm using Excel 2000
.
- Follow-Ups:
- Re: ChangeFileAccess
- From: Doug
- Re: ChangeFileAccess
- From: Tom Ogilvy
- Re: ChangeFileAccess
- From: Tom Ogilvy
- Re: ChangeFileAccess
- Prev by Date: Re: AutoRun Excel Macros
- Next by Date: Re: Subject: Macro- Copy same rows into own worksheets
- Previous by thread: Documentation/Reference guide
- Next by thread: Re: ChangeFileAccess
- Index(es):
Relevant Pages
|