#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 389
Default ReadOnly

ActiveWorkbook.ChangeFileAccess Mode:=xlReadOnly

This will ask me if I want to save the file first. I tried DisplayAlerts =
False but that caused an automatic save before changing to ReadOnly. Is
there a way to not Display the Alert and have it change to ReadOnly without
saving.

Thank you,

Steven
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default ReadOnly

I haven't tried it. but try doing

Activeworkbook.Saved = True
Activeworkbook.ChangeFileAccess Mode:=xlReadOnly

--
Regards,
Tom Ogilvy


"Steven" wrote:

ActiveWorkbook.ChangeFileAccess Mode:=xlReadOnly

This will ask me if I want to save the file first. I tried DisplayAlerts =
False but that caused an automatic save before changing to ReadOnly. Is
there a way to not Display the Alert and have it change to ReadOnly without
saving.

Thank you,

Steven

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
ReadOnly = NO dspilberg Excel Programming 2 April 25th 07 05:20 PM
Can .xls make itself ReadOnly? Jay Excel Programming 4 October 30th 06 05:10 AM
Readonly files nc Excel Discussion (Misc queries) 2 March 18th 05 11:13 AM
Readonly pauluk[_10_] Excel Programming 1 March 3rd 04 12:43 PM
Open As Readonly SCSC[_2_] Excel Programming 5 February 4th 04 05:14 PM


All times are GMT +1. The time now is 07:45 AM.

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"