我尝试使用许多网站建议在打开 Excel 工作簿时自动运行宏列表的代码。附件是我在 ThisWorkbook 上的 VBA 代码:
Private Sub WorkbookOpen()
MsgBox "STOP! Do NOT attempt to highlight any fields manually!" & vbCrLf & _
"Any highlighting will be overwritten upon reentry of this workbook.", vbOKOnly +vbExclamation
Call Melanoma.ReformatDeplete
Call Melanoma.CScheckNO
Call Melanoma.CScheckMissing
Call Glioma.ReformatDeplete
Call Glioma.ReformatGBM
Call Glioma.CScheckNO
Call Glioma.CScheckMissing
Call Breast.ReformatDeplete
Call Breast.CScheckNO
Call Breast.CScheckMissing
Call Lymphoma.ReformatDeplete
Call Lymphoma.CScheckNO
Call Lymphoma.CScheckMissing
Call Lung.ReformatDeplete
Call Lung.CScheckNO
Call Lung.CScheckMissing
Call Miscellaneous.ReformatDeplete
Call Miscellaneous.CScheckNO
Call Miscellaneous.CScheckMissing
Call Normals.ReformatDeplete
Call Normals.CScheckNO
Call Normals.CScheckMissing
End Sub
显然,我将工作簿保存为启用宏的 2010 工作簿,但是当我打开工作簿时,它没有任何反应,我仍然需要单击 VBA 中的“运行按钮”
有什么建议么?
谢谢!