Para habilitar ou desabilitar macros no excel via VBA basta usar o método AutomationSecurity conforme abaixo:
Para Habilitar:
Sub
Workbook_Open()
Application.AutomationSecurity = msoAutomationSecurityLow
End Sub
Para Desabilitar:
Sub
Workbook_Open()
Application.AutomationSecurity = msoAutomationSecurityForceDisable
End 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