📜  在打开工作簿 vba 代码示例时启用宏

📅  最后修改于: 2022-03-11 14:51:55.464000             🧑  作者: Mango

代码示例1
Application.AutomationSecurity = msoAutomationSecurityForceDisable
    Workbooks.Open Filename:=strFilepath & strFilename, ReadOnly:=True
    Application.AutomationSecurity = msoAutomationSecurityByUI