我创建了一些代码来打开工作簿并运行保存在该工作簿中的宏,但我收到错误'期望子/功能'。代码如下。非常感谢您的帮助!
Sub practice()
Const folderPath As String = "I:\Ben\New Stores\Reports"
Dim fso As FileSystemObject
Set fso = New FileSystemObject
Dim MyFolder As Object
Set MyFolder = fso.GetFolder(folderPath)
Application.Run "'6wk File to Run.xlsm'!button2_click"
End Sub
编辑工作代码在
之上