S
SS
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
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