To Enable Macro in Excel.

M

Murali G

Hi-

When we write a macro in excel and open the file there is popup box which
asks the user to select "Enable Macro" or "Disable Macro". If the user
selects disable macro then the macro becomes inactive. Is there any code to
enable the macro when the workbook is opened and its enabled automatically
without giving an option to the user for selecting (Enable or Disable Macro)
from the popup box.

Regards,
Murali. G
 
J

Jacob Skaria

This is based on the security level the user has selected. If the security
level is set to medium the confirmation message pops up..You can avoid this
confirmation message if you set the security level to low in
Tools>Macro>Security>. Changing this through VBA not easy for obvious
security reasons.

If this post helps click Yes
 

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