Microsoft.Office.Interop.Excel really slow

前端 未结 8 1634
执笔经年
执笔经年 2020-11-27 13:43

I am exporting a 1200 X 800 matrix (indexMatrix) to a excel file using the standard Microsoft.Office.Interop.Excel. The app works, just that it is really really really slow(

8条回答
  •  广开言路
    2020-11-27 14:17

    Turn off ScreenUpdating before writing any data, Application.ScreenUpdating = FALSE then turn on at end of code = TRUE

提交回复
热议问题