Ask every user if he wants to activate macros.

francois.lemarie

Board Regular
Joined
Mar 24, 2010
Messages
54
What would be the code in order Excel asks to every user if he wants to activate macros ?

I still know it is possible to configure it un Tools, Security, but more than 50 users in all over the world will use my file. It's impossible the 50 users have the macros activated and I cannot ask to each other to change his personal settings.

I mean even if the security settings automatically desactivate macros, the windows asking the user if he wants to activate macros must be activated.

Any way to do that without having personnaly to ask users to change is settings ?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
What would be the code in order Excel asks to every user if he wants to activate macros ?

I still know it is possible to configure it un Tools, Security, but more than 50 users in all over the world will use my file. It's impossible the 50 users have the macros activated and I cannot ask to each other to change his personal settings.

I mean even if the security settings automatically desactivate macros, the windows asking the user if he wants to activate macros must be activated.

Any way to do that without having personnaly to ask users to change is settings ?


Usually the question is how to deativate the Macro prompt. I have asked this myslef.

By default the Question to activate macro will pop up. UNLESS ,like you said, the security setting are high and it automatically disables. BUt weven in that case the user will be notified that the file contains macros and they might be potentially harmfull etc.

If Macros are required for the function of the sheet you could use VB to hide all but one sheet that say
"enable macros to use this sheet. Please reopen and enable macros"
If Macros are enable on open then the splash sheet is hidden the rest of the sheets become visible.

The code to make sheet invisible is:
Code:
Sheet1.Visible = True
[INDENT]or
[/INDENT]Sheet1.Visible = False
 
Upvote 0

Forum statistics

Threads
1,214,921
Messages
6,122,280
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top