Wait for Workbook.RefreshAll() (C#)

前端 未结 4 735
伪装坚强ぢ
伪装坚强ぢ 2021-01-18 15:50

I want to loop through a directory (using C#) and Refresh all Excel sheets in there. I use:

Workbook.RefreshAll();

How can I wait for the <

4条回答
  •  别那么骄傲
    2021-01-18 16:21

    Maybe you can query for the State:

    Application.CalculationState =xldone

    For Documentation look here: http://msdn.microsoft.com/en-us/library/office/bb220901(v=office.12).aspx

提交回复
热议问题