ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   To Enable Macro in Excel. (https://www.excelbanter.com/excel-programming/428830-enable-macro-excel.html)

Murali G

To Enable Macro in Excel.
 
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

Jacob Skaria

To Enable Macro in Excel.
 
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
ToolsMacroSecurity. Changing this through VBA not easy for obvious
security reasons.

If this post helps click Yes
---------------
Jacob Skaria


"Murali G" wrote:

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


yeekiat

To Enable Macro in Excel.
 
Alternatively, you can write your excel program as an excel add-in


On May 22, 8:52*pm, Murali G <Murali
wrote:
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




All times are GMT +1. The time now is 12:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com