VBA Security Warning 'Enable Content'

Pinaceous

Well-known Member
Joined
Jun 11, 2014
Messages
1,124
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Is there a way to automatically click on the 'Enable Content' button of the [SECUTITY WARNING Some active content has been disabled. Click for more details. 'Enable Content' ]??

If not, is there a way to represent this ribbon click; as an actual automatic pop-up message box upon opening the macro documents?


Thanks you!

Pinaceous


:confused:
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
No there is not. That dialog is a feature of Excel's security.

Discussion of how to defeat security features is not allowed on this board.
 
Last edited:
Upvote 0
Hi,

I'm not looking to defeat security as I clearly wrote:

If not, is there a way to represent this ribbon click; as an actual automatic pop-up message box upon opening the macro documents?

I'm looking for a way through C++ to replace this ribbon to a pop-up message box.

If you do not know, its okay not to respond.

Thank you
 
Upvote 0
If you can install an addin in the user's machine then a pop up message can be displayed to inform the user that Macros have been disabled for that particular workbook upon opening. This popup is probably more noticeable than the default excel security Warning strip located accross the top.

Unfortunately, we can't discuss here how to click the "Enable Content" security button via code from the addin as it is against the board rules and would be unethical.

Alternatively,If all you need is to avoid the "annoying" default security warning from appearing in the first place for this particular workbook, you can ask the user's permission to save the workbook file in an approved location via Developper tab>Security>Approved Locations>Add New Location .. These steps have to be done in excel in the user's machine.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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