Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
File Read-Only Status
I have an application where a number of network connected users that might
want to open it. If the application is already in use, then as normal the new user is told it is in use and they can open it as 'read-only'. This is OK but is there a way in VBA to detect that the file is open as read-only which I can use to prevent changes and saving of this version of the file ? TIA Nigel ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =--- |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
File Read-Only Status
"Nigel" wrote in message ... I have an application where a number of network connected users that might want to open it. If the application is already in use, then as normal the new user is told it is in use and they can open it as 'read-only'. This is OK but is there a way in VBA to detect that the file is open as read-only which I can use to prevent changes and saving of this version of the file ? TIA Nigel I think you are looking for Thisworkbook.Readonly Geoff |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
File Read-Only Status
Choose to any sample line of code
If ThisWorkbook.ReadOnly = False Then MsgBox "Read\write" If ActiveWorkbook.ReadOnly = False Then MsgBox "Read\write" If Workbooks("Book2.xls").ReadOnly = False Then sgBox "Read\write" "Nigel" wrote in message ... I have an application where a number of network connected users that might want to open it. If the application is already in use, then as normal the new user is told it is in use and they can open it as 'read-only'. This is OK but is there a way in VBA to detect that the file is open as read-only which I can use to prevent changes and saving of this version of the file ? TIA Nigel ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =--- |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
File Read-Only Status
Thanka guys for the tips. Secondary question, when the file is already
open, the message the use gets includes an option to choose either read-only or read-olny and advise when remote user releases the file. Can the later be intercepted ? Cheers Nigel "JON JON" wrote in message ... Choose to any sample line of code If ThisWorkbook.ReadOnly = False Then MsgBox "Read\write" If ActiveWorkbook.ReadOnly = False Then MsgBox "Read\write" If Workbooks("Book2.xls").ReadOnly = False Then sgBox "Read\write" "Nigel" wrote in message ... I have an application where a number of network connected users that might want to open it. If the application is already in use, then as normal the new user is told it is in use and they can open it as 'read-only'. This is OK but is there a way in VBA to detect that the file is open as read-only which I can use to prevent changes and saving of this version of the file ? TIA Nigel ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =--- ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =--- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can I toggle in and out of read-only status in an Excel file? | Excel Discussion (Misc queries) | |||
Help! How to Remove Read Only Status on a Worksheet | Excel Worksheet Functions | |||
How do I clear read-only status on a workbook file? | Excel Discussion (Misc queries) | |||
Remove Read Only Status on Excel Templates | Excel Discussion (Misc queries) | |||
How do I print the read-only status of Excel file? | Excel Discussion (Misc queries) |