Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / May 2008

Tip: Looking for answers? Try searching our database.

Macro Read Only If Statement

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vick - 29 May 2008 20:36 GMT
I would like to have an if statment in my macro that would check the status
of a workbook, and if the workbook is Read Only do something else. I can do
the then and else of the statement, I'm just not sure how to perform the IF
part of the statement. So I think my question is what is the code for a
workbook in read only status? (Not on the file folder, but because someone
else is accessing the file)

Thanks
Per Jessen - 29 May 2008 20:49 GMT
Hi

Try this:

If ActiveWorkbook.ReadOnly Then
>I would like to have an if statment in my macro that would check the status
> of a workbook, and if the workbook is Read Only do something else. I can
[quoted text clipped - 6 lines]
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.