Para habilitar ou desabilitar macros no excel via VBA basta usar o método AutomationSecurity conforme abaixo:
Para Habilitar:
SubWorkbook_Open()Application.AutomationSecurity = msoAutomationSecurityLowEnd Sub
Para Desabilitar:
SubWorkbook_Open()Application.AutomationSecurity = msoAutomationSecurityForceDisableEnd Sub
Caso queria esse arquivo, favor enviar um email para atendimento@exceleaccess.com solicitando.
Obrigado pela visita!
www.exceleaccess.com
contato@exceleaccess.com
www.exceleaccess.com
www.exceleaccess.com
www.exceleaccess.com

