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 / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Testing of a workbook is in read only mode

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GLT - 24 Jan 2006 16:10 GMT
Hi,

I have three macros in my workbook however I only want these macros to be
allowed to run if the workbook is protected by being read-only.

This would mean if any of the macros run then it would check to see the
status of the workbook first - could anyone advise how to acheive this?

Thanks,
GLT.
Philip - 24 Jan 2006 16:39 GMT
Hi,

the test is:

if thisworkbook.ReadOnly = true then ...

OR

if workbooks(sName).readonly=true

HTH

Philip

> Hi,
>
[quoted text clipped - 6 lines]
> Thanks,
> GLT.
 
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.