![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Location: Ohio
Posts: 5
|
I have a workbook_beforesave macro that *must* be enabled. If it's not, I don't want users to open my spreadsheet.
Is there a way to a) force users to enable macros, b) change the enable macro dialog box to tell them they have to, or c) force the spreadsheet to close itself if they don't enable macros? |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Here's how I do it...
Hide all of your sheets except one. You have to leave one visible, I think... Anyway, place a message on this sheet telling your users that macros must be enabled to use your wb. If they enable, then unhide all of your sheets. Let's assume that the sheet with the "You must Enable Macros Message" is called "Message" Try this:
Tom |
|
|
|
|
|
#3 | |
|
Board Regular
Join Date: Feb 2002
Location: North Alabama, USA
Posts: 105
|
Quote:
I was raised in Strongsville, Ohio. This is one of those I think I understand, but I can only sudgest where to look for the answer. If you can set you stuff up in an XLA file with an AUTOEXEC the user will never see the Enable Macros prompt. That will mean doing it as an Add-In. Poke around the startup options for Excel. I really hope this helps. Rocky... |
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Raised in Cincy...
Rocky's answer would be a more eloquent and complete solution. My solution is easily defeated, but if the data is not real sensitive, it suffices for the everyday user. Tom |
|
|
|
|
|
#5 |
|
New Member
Join Date: Apr 2002
Location: Ohio
Posts: 5
|
Thanks for the great suggestions - will try them both as soon as I'm out of meetings today!
Don't know if the add-ins will work since I'm at a large site & have little control over what gets published to everyone, but it's definitely worth a try. And what, is everyone from Ohio now?!? :~) |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|