Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 173
Default Save as Read only

Hi, I need a piece of code that can save a file over a read only file and
save as a read only, but not have a message that gives you a choice of
opening as a read only or not (If that makes any sense)
I have tried this, but doesnt work:
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs Filename:="E:\Desktop\Test.xls", _
FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=True
ActiveWindow.Close

Help greatly appreciated

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
trying to save all files xls says can't - read only Kris Excel Discussion (Misc queries) 1 August 3rd 08 05:34 PM
Save as Read-Only hurlbut777 Excel Programming 1 December 11th 06 03:39 AM
cant save read only file pglm Excel Discussion (Misc queries) 2 September 15th 06 02:02 PM
save as read only jatman Excel Discussion (Misc queries) 3 August 25th 06 01:56 PM
Trying to save a .XLA file that's Read Only silkworm Excel Programming 4 November 12th 05 01:22 AM


All times are GMT +1. The time now is 09:38 AM.

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

About Us

"It's about Microsoft Excel"