ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel 2010 is not acting the same with ReadOnly... (https://www.excelbanter.com/excel-programming/444641-excel-2010-not-acting-same-readonly.html)

SS[_5_]

Excel 2010 is not acting the same with ReadOnly...
 
Hi,
I have this code to determine if the file was opened as read only, and
then stop the lengthy macro before it runs, if it is read only.
If ActiveWorkbook.ReadOnly Then
MsgBox "It appears that the file was opened as read-only."
& Chr(10) & Chr(10) _
& "Please check out the file first, or open for editing
(Windows 7)."
Exit Sub

End If
(code continues)

However, when i run this on Excel 2010, with the file opened as read
only, the statement above does not return the message box warning. It
just continues past it.

I guess my question is, has something changed in 2010. Works fine in
2003 and before.

Note, I am using this file from a Sharepoint site.

Thanks for any help,
Steve


All times are GMT +1. The time now is 01:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com