Thread: Pre-Open VBA
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
NickHK NickHK is offline
external usenet poster
 
Posts: 4,391
Default Pre-Open VBA

Samuel,
The general concept is to set all WS's xlVeryHidden, except one that has a
message that says "Macros must be enabled to use this WB."
And you have WB_Open code that hides that splash screen and shows the
required sheets.
Consequently, if macros are disabled, this WB_Open code cannot run and the
user is left viewing your "Macros must be enabled ....
Don't a matching WB_BeforeSave code to reverse these changes.

NickHK

"SamuelT" wrote in
message ...

Hi all,

I've got a spreadsheet that has a number of macros that are essential
to the running of the document. However, I've noticed that when some
people use the document they're are opting to not run macros when
questioned on opening the file.

Is there a means of either a) having a window saying something like
'You must run macros to use this spreadsheet' that comes up before the
Excel 'run macros' prompt; or b) run the macros automatically and do
away with the pre-open prompt.

Any suggestions appreciated.

TIA,

SamuelT


--
SamuelT
------------------------------------------------------------------------
SamuelT's Profile:

http://www.excelforum.com/member.php...o&userid=27501
View this thread: http://www.excelforum.com/showthread...hreadid=552165