Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Suppress the Disable Macros / Enable Macros Dialog



Is there a way to suppress the dialog box that pops up when Excel starts
up asking whether the macros are to be disabled or enabled? I naturally
want the macros to be enabled as well. I just want to take out the
possibility of the user disabling the macros.

Thanks in advance.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 188
Default Suppress the Disable Macros / Enable Macros Dialog


"Shoji Karai" wrote in message
...

Is there a way to suppress the dialog box that pops up when Excel starts
up asking whether the macros are to be disabled or enabled? I naturally
want the macros to be enabled as well. I just want to take out the
possibility of the user disabling the macros.


Hi Shoji,

Not sure if it solves for you either, but I asked a similar question
recently and got some ideas back.

Thread is he

...

If that doesn't work for you (and I would like to achieve almost exactly
what you do), then perhaps other suggestions might follow your post.

HTH,

Alan.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default Suppress the Disable Macros / Enable Macros Dialog

http://groups.google.com/groups?hl=e...5c8f8df&rnum=5
http://groups.google.com/groups?hl=e...fa7c0e8&rnum=1

Or search Google using "Enable macros", "Force macros", etc.

HTH
Paul
--------------------------------------------------------------------------------------------------------------
Be advised to back up your WorkBook before attempting to make changes.
--------------------------------------------------------------------------------------------------------------

Is there a way to suppress the dialog box that pops up when Excel starts
up asking whether the macros are to be disabled or enabled? I naturally
want the macros to be enabled as well. I just want to take out the
possibility of the user disabling the macros.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 79
Default Suppress the Disable Macros / Enable Macros Dialog

It's up to the user how they want to handle macros. Allowing your code to
override security settings would defeat the point of the security.

There are all sorts of answers in the group about hiding the sheets in your
project and only unhiding them through code, so that the average user can't
get at the underlying book unless they allow macros.

I'd say the best solution is to add a digital signature to your project and
hope that any users on Medium security will be prepared to trust code that
comes with that signature.

Robin Hammond
www.enhanceddatasystems.com
Check out our XspandXL add-in


"Shoji Karai" wrote in message
...


Is there a way to suppress the dialog box that pops up when Excel starts
up asking whether the macros are to be disabled or enabled? I naturally
want the macros to be enabled as well. I just want to take out the
possibility of the user disabling the macros.

Thanks in advance.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Suppress the Disable Macros / Enable Macros Dialog

Alan,

Here is some code that will create an Excel4Macro sheet in the workbook. You
don't need to put any macro code on the sheet. As you noted, the presence of
the Macro sheet in the workbook will force the user to reply "Yes" to enable
the macros -OR- not open the workbook. The xlVeryHidden will hide the Macro
sheet.

Troy

Sub AddMacro4Sheet()
ActiveWorkbook.Sheets.Add Type:=xlExcel4MacroSheet
ActiveSheet.Visible = xlVeryHidden
End Sub



"Alan" wrote in message
...

"Shoji Karai" wrote in message
...

Is there a way to suppress the dialog box that pops up when Excel starts
up asking whether the macros are to be disabled or enabled? I naturally
want the macros to be enabled as well. I just want to take out the
possibility of the user disabling the macros.


Hi Shoji,

Not sure if it solves for you either, but I asked a similar question
recently and got some ideas back.

Thread is he

...

If that doesn't work for you (and I would like to achieve almost exactly
what you do), then perhaps other suggestions might follow your post.

HTH,

Alan.







  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 188
Default Suppress the Disable Macros / Enable Macros Dialog


"TroyW" wrote in message
...

Here is some code that will create an Excel4Macro sheet in the
workbook. You don't need to put any macro code on the sheet. As you
noted, the presence of the Macro sheet in the workbook will force
the user to reply "Yes" to enable the macros -OR- not open the
workbook. The xlVeryHidden will hide the Macro sheet.

Troy

Sub AddMacro4Sheet()
ActiveWorkbook.Sheets.Add Type:=xlExcel4MacroSheet
ActiveSheet.Visible = xlVeryHidden
End Sub



Hi Troy,

That's perfect - exactly what I was after.

Thank you so much!

Alan.




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
Enable Macros Pop-Up Dialog Box??? Jay Excel Worksheet Functions 8 March 18th 13 08:30 AM
Enable/Disable Macros Pop-Up juamig Excel Discussion (Misc queries) 1 April 9th 10 06:29 PM
How can I suppress the enable macros and save changes messages? Ron in Walnut Creek Excel Worksheet Functions 4 October 29th 09 08:36 PM
Enable/Disable macros Adam Excel Discussion (Misc queries) 2 March 11th 05 10:29 AM
Enable/Disable Macros Ben Schaum Excel Discussion (Misc queries) 1 January 21st 05 03:42 PM


All times are GMT +1. The time now is 01:45 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"