how to enable macro for addin

  • Thread starter Thread starter Ashish
  • Start date Start date
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.
 
Change the security setting. Addin code can't change that or otherwise rogue
code could do it and defeat the security.
 
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
 
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.
 
Back
Top