Error using actxserver(line 90). Server creation failed. Invalid ProgID 'Excel.Application'. with MAC and Matlab R2017b

16 ビュー (過去 30 日間)
I am able to run a custom matlab function that importing data from excel to matlab on my window pc, however, I am having the below error on my new MAC pc.
Error using actxserver (line 90)
Server creation failed. Invalid ProgID 'Excel.Application'.
My excel version on MAC is not a click-to-run which is a common issue with windows.
From my invastigation the issue is related to Component Object Model (COM) server but I cannot find a solution.
I am using Excel Version 16.50, Matlab R2017b
Any help solving it would be highly appreciated.
  2 件のコメント
Karamos
Karamos 2021 年 7 月 22 日
Hi Mario, I think this is not relevant and if it was I couldn’t implement it :-)

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2021 年 7 月 22 日
編集済み: Walter Roberson 2021 年 7 月 22 日
https://www.mathworks.com/help/matlab/ref/actxserver.html says that actxserver() is only available for Windows. The Mac version of Excel does not have the interface compiled in to it.
  11 件のコメント
Walter Roberson
Walter Roberson 2023 年 3 月 2 日
Are you asking about connecting to Ansys student desktop, or are you asking about connecting other software to MATLAB using MATLAB as the server to process requests on behalf of other software?
Ashishkumar Gupta
Ashishkumar Gupta 2023 年 3 月 2 日
I want to call Ansys student Electronics desktop 2022.2 (x64) from MATLAB environment using MATLAB command actxserver(progid).
Few intial lines of code:
iMaxwell=actxserver('Ansoft.ElectronicsDesktop'); % Also tried various combinations of prog id
Desktop=invoke(iMaxwell,'GetAppDesktop');
Project =Desktop.NewProject();
Error:
Server creation failed. Invalid ProgID 'Ansoft.ElectronicsDesktop'

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeUse COM Objects in MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by