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 ?
 

Some videos you may like

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

arkusM

Well-known Member
Joined
Apr 12, 2007
Messages
560
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
 

Watch MrExcel Video

Forum statistics

Threads
1,109,394
Messages
5,528,481
Members
409,819
Latest member
Helpful786

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top