LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Opening workbook automatically as Read-0nly

As long as you do things in the correct order, you should be ok:

With ActiveWorkbook
.Save
SetAttr .FullName, vbReadOnly
End With

If you change it to readonly first, then try to save, you may have some trouble
<bg.



excelnut1954 wrote:

I appreaciate the info, Dave.

The read-only thing..... I see where you're talking about in Explorer.
Will I have to change this in Explorer manually each time? Sounds like
it. I was hoping to have code written in my end of day processing that
would take care of that. If not, then.... oh well. Not a huge thing
for this project.
Again, thanks for the help.

J.O.


--

Dave Peterson
 
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
automatically save a read-only workbook with client last name John Galt[_2_] Excel Discussion (Misc queries) 2 January 13th 09 07:47 PM
opening workbook as read-only or write-enabled archiboy Excel Programming 1 January 31st 06 01:11 PM
automatically opening workbook Pinnacle Excel Discussion (Misc queries) 1 May 20th 05 12:48 AM
opening workbook as read-only Mariusz Excel Programming 2 May 25th 04 08:53 AM
Opening Excel Workbook from Word using VBA - Always Read Only Alan Excel Programming 0 November 5th 03 02:55 AM


All times are GMT +1. The time now is 03:21 PM.

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"