How to call sheet-specific macro from one Excel workbook in another?

后端 未结 4 1610
野的像风
野的像风 2021-01-05 01:53

I\'m trying to call an Excel macro that\'s in another workbook. It\'s a sheet-specific macro, but the syntax given by Microsoft documentation and researching on the web, on

4条回答
  •  孤城傲影
    2021-01-05 02:24

    You can use this:

    Run "'" & MySheet.Parent.name & "'!" & MySheet.CodeName & ".macroName"
    

提交回复
热议问题