Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel VBA, check if Macros are enabled

Status
Not open for further replies.

greg0303

Technical User
May 5, 2006
94
CA
How do you check if Macros are enabled and not load the worksheet if there are disabled?
 




Hi,

Well, put it this way. If macros were disabled, exactly WHAT would do ANYTHING, beings that the macros are DISABLED?

Skip,
[sub]
[glasses] [red][/red]
[tongue][/sub]
 
Hi,

I'm assuming that you're trying to prevent users from using the workbook if the macro's are not enabled.

The only way to accomplish this, is by creating an extra sheet, maybe with a single message on it, that they need to enable in order for the workbook to be useable, and hide all the sheets expect that one, then set workbook protection.

You will need to use VBA to accomplish this. If you search in the VBA forum, you'll probably find loads of threads that deal with this.

Cheers,

Roel
 



Since this is a VBA related question, please post any further questions in Forum707.

Skip,
[sub]
[glasses] [red][/red]
[tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top