Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Enabling macros for my workbook

Is it possible to not open a workbook (either through Excel or
double-clicking the file in explorer) if macros are automatically
disabled or the user decides not to enable the macros?

If so, I would like for it then to display a msgbox informing the user
that macros must be enabled to view or edit the workbook.

Thanx in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Enabling macros for my workbook

The standard way to approach this is as follows.
- create a worksheet with a message on it explaining that for this workbook
to
run it needs macros enabled, maybe even a few screenshots
- hide all other worksheets
- add some code in the Workbook_Open event that unhides the other sheets,
but hides that sheet.


What happens is that if they do not enable macros, they will only see the
warning sheet, telling them how to do it. If they enable macros, it will
startup as the workbook it should be.


--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Maddoktor" wrote in message
...
Is it possible to not open a workbook (either through Excel or
double-clicking the file in explorer) if macros are automatically
disabled or the user decides not to enable the macros?

If so, I would like for it then to display a msgbox informing the user
that macros must be enabled to view or edit the workbook.

Thanx in advance.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling Macros Saxman[_3_] Excel Discussion (Misc queries) 3 November 15th 08 06:59 PM
Enabling Macros Brian Gregg New Users to Excel 3 September 25th 07 06:32 PM
Enabling macros Peter M Excel Discussion (Misc queries) 3 February 7th 05 10:57 PM
macros not enabling James[_10_] Excel Programming 2 September 4th 03 03:04 PM
Enabling macros Tom Ogilvy Excel Programming 0 August 18th 03 03:48 PM


All times are GMT +1. The time now is 01:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"