Link to home
Start Free TrialLog in
Avatar of AMcatear
AMcatear

asked on

Disable excel warning screens

Within Excel there is a check box under

TOOLS>OPTIONS>GENERAL TAB>Macro virus protection

that by default is usually enabled.  This produces a warning dialog box anytime you open a workbook that contains VBA.

I am currently writing an application within excel VBA that executes as soon as the workbook is open. I wish to prevent the macro virus protection dialog warning from activating when I run my spreadsheet.  In effect I wish to uncheck the macro virus protection in the general dialog box programmatically, since it will be distributed to colleagues. I have tried recording a macro, but this does not work, I have also looked at all the methods, objects and properties associated with the application object, but cannot find any reference to macro virus protection.  Displayalerts = false does not work for this dialog box either.

Is there a way of disabling the warning dialog by using VBA, so that my spreadsheet will execute uninterrupted?
ASKER CERTIFIED SOLUTION
Avatar of WolfgangKoenig
WolfgangKoenig

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Éric Moreau
Have you tried:
Application.DisplayAlerts = False
If you could do this in VBA then the warning would be completely useless as a malicious macro could disable the warning and run anyway.
Avatar of rkot2000
rkot2000

office 2000 has an utility to sing your own macros. it's should work for you ...

Basically you can create your own digital signature use it to sing macros.
If you have 2000, i am with rkot2000
Displaysalerts is used to ther things, not macro alerts ("The file you try to save already exist...", "doc..... not saved, do you like to close anyway....", and so on)
This question appears to have been abandoned. A Moderator will be asked to
close this question after seven days, with the following recommended
disposition:

Points to TimCottee

If you have any comment or objection to the recommendation, please leave it here.

guidway
EE Cleanup Volunteer

Why not points to mee ?

Best regards
WoK
because my solution has two votes :))
Actually, after looking over it again I think we can use a 3 way split here. All three of your answers do appear to be correct.

This question appears to have been abandoned. A Moderator will be asked to
close this question after seven days, with the following recommended
disposition:

Split points between, TimCottee, rkot2000, and WolfgangKoenig

If you have any comment or objection to the recommendation, please leave it here.

guidway
EE Cleanup Volunteer

With WolfgangKoenig solution you need to distribute vb application with vb runtime.
Per recommendation, force-accepted.

Netminder
CS Moderator

TimCottee: points for you at https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20334313
rkot2000: points for you at https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20334315