Error when calling Excel macro from C#

前端 未结 1 862
一生所求
一生所求 2021-01-13 16:55

I am trying to call a macro from an Excel file using C# 4.5. My Excel version is 2010.

When I try to call the macro, I get the following error:

1条回答
  •  无人及你
    2021-01-13 17:25

    book.Run ("'Macros.xls'!MacroName");
    

    0 讨论(0)
提交回复
热议问题