필터 지우기
필터 지우기

Anyway to turn off Excel automatic calculation by a MatLab command for faster export ?

조회 수: 7 (최근 30일)
Hello, I am using a excel template file to which I export data. The amount of data is big so I use xlswrite1 command from:
This enables me to lose less time on data exporting. However I noticed that if I disable the auto calculation on Excel the export is even faster.
For sure this happens because my excel file template has graphs for the data to be exported and each time a new data is exported the graph are rebuilt taking its time.
My idea was to somehow, by a MatLab command, disable the Excel auto calculation on the start of exportation and enable it on the end.
Any way to this by a activex command or any other way?
Thanks.

답변 (1개)

Keld Stefan Pedersen
Keld Stefan Pedersen 2016년 1월 12일
This should do the trick:
Excel = actxserver('Excel.Application');
Excel.Calculation = 'xlCalculationManual';
% Update worksheet here
Excel.Calculation = 'xlCalculationAutomatic';
cheers
  댓글 수: 1
Rouven Müller
Rouven Müller 2022년 10월 28일
It's not working
but no problems with
Excel.Application.ScreenUpdating = false;
Excel.Application.EnableEvents = false;

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by