Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default How do I keep a file from opening unless macros are enabled?

There is no foolproof way, but a common approach is to have a dummy
sheet with a warning that macros must be enabled, and a WorkbookOpen
event macro which will hide that sheet and reveal all the other
sheets. A WorkbookClose event macro will hide all the other sheets and
unhide the dummy sheet.

So, if the file is opened without macros, then only the dummy sheet
with the warning is visible, and the user can't do much with the file.

The technique is described on Chip Pearson's site in more detail he

http://www.cpearson.com/excel/EnableMacros.aspx

Chip also has other ways of trying to ensure that macros are enabled.

Hope this helps.

Pete

On Aug 27, 10:52*pm, sharken
wrote:
I have a file I send to customers that needs a macro to run in order for the
data to be correct. *Is there a way to force a user to click on enable macros
in order for the file to open?


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
Macros enabled but will not run in excel 2007 Randy Excel Discussion (Misc queries) 11 October 6th 09 03:19 AM
Cell/worksheet protection with macros enabled Zilla[_2_] Excel Worksheet Functions 7 March 6th 07 01:07 AM
how to track changes in a workbook with macros enabled Jerjuice Excel Discussion (Misc queries) 0 October 11th 06 06:16 PM
how to track changes in a workbook with macros enabled Jerjuice Excel Discussion (Misc queries) 0 October 11th 06 06:15 PM
Delete key not enabled on macros drop down list carol49 Excel Discussion (Misc queries) 3 August 27th 06 08:43 PM


All times are GMT +1. The time now is 01:05 PM.

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"