LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 492
Default Read Only Workbook

Hi All,
I have a file on the public drive of a company system that several users in
different locations need to update on a regular basis.
These people are highly skilled in their own fields (Hands-On Engineers),
but not too computer literate.
Obviously if one of them goes into the file and another one is already in
it, the message 'This file is locked for editing by . . . Open as read only'
appears, but on several occasions they have just gone on through the 'Save
As' prompt and saved a copy in the same folder which is of no use as of
course the original file remains unchanged.
I've got round it with the code below, which works to a degree, but the XL
message with regard to 'This file is read only, do you want to save a copy'
still appears before the message box, which is untidy.
The DisplayAlerts application does not seem suppress it. Is there a way to
do so, or is this a hard and fast message like the 'Enable Macro's' on
opening a file that cannot be overcome?
Any advice very welcome,
Regards,
Alan.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
Application.DisplayAlerts = False
If ThisWorkbook.ReadOnly Then
MsgBox "Message to the user..........", etc,etc
Application.DisplayAlerts = True
Cancel = True
End If
End Sub


 
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
Workbook - Read Only SaraHall :)[_2_] Excel Worksheet Functions 2 September 10th 08 08:32 PM
Original Workbook becoming Read-Only [email protected] Excel Discussion (Misc queries) 3 August 30th 07 10:22 PM
Workbook on Workgroup, read only KandK Excel Discussion (Misc queries) 0 March 2nd 07 05:39 AM
How do I change a workbook from read only? Lottie Excel Discussion (Misc queries) 1 November 30th 06 11:39 PM
Excel Gurus = want a macro in 1 workbook to get info from another workbook = Read please harry Excel Programming 5 December 20th 03 03:26 AM


All times are GMT +1. The time now is 07:25 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"