how to enable macro for addin

A

Ashish

If secuurity level is set to medium (under Tools->Macro->Security) and trust
all installed addins and template is uncheck. Then how to enable macro for
addin programatically. When i open outlook it asks me do u want to
enable/disable macro. If i disable then my addin will not work. To avoid the
message i need to set macro to enable. Please suggest.
 
K

Ken Slovak - [MVP - Outlook]

Change the security setting. Addin code can't change that or otherwise rogue
code could do it and defeat the security.
 
A

Ashish

can i change security setting programatically?
if i change security in outlook and open outlook again then it gives warning
for my add (do u want to enable/disable macro)
how to avoid that message and enable macro
 
K

Ken Slovak - [MVP - Outlook]

I just said you can't change the settings in code in your addin.

You need to change the settings before trying to load your addin, and if
necessary put together instructions on what settings are needed by your
users.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top