- Manually close and restart the MATLAB process.
- Select and terminate the "Microsoft Excel" process in Windows Task Manager.
- Execute "system('taskkill /F /IM EXCEL.exe')" from the MATLAB Command line.
- Note: This will attempt to terminate all active Microsoft Excel processes running on the machine.
Why does the "Microsoft Excel" background process not terminate when using "Columns.Item(col).AutoFit()" feature with actxserver?
조회 수: 6 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2025년 3월 4일
편집: MathWorks Support Team
2025년 3월 17일
I am using "actxserver" to operate on an Excel worksheet, "ws", in MATLAB R2025a. In my workflow, I execute the following command:
>> ws.Columns.Item(1).AutoFit()
After quitting my ActiveX server connection (saved as "excel") using "excel.Quit()" and "delete(excel)", a "Microsoft Excel" process remains visible in Task Manager until I either close and restart MATLAB or manually terminate the process. Is this intended, or am I not properly cleaning up my ActiveX Server session?
채택된 답변
MathWorks Support Team
2025년 3월 14일
This is a confirmed issue with the "Columns.Item.AutoFit()" feature of "actxserver" in MATLAB R2024a, R2024b, and R2025a. The developers will fix this issue in a future MATLAB release.
In the meantime, the following workarounds can be used to get rid of the extra process:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!