In Excel Link, why do I receive the error: Sub or Function Not Defined ?
13 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2012 年 9 月 10 日
編集済み: MathWorks Support Team
2021 年 12 月 13 日
In Excel Link, I receive the following error:
ERROR: Sub or Function Not Defined
Excel Link does not recognize the MLPutMatrix command inside the macro. The same command works fine if I enter it inside the Worksheet.
採用された回答
MathWorks Support Team
2021 年 12 月 10 日
編集済み: MathWorks Support Team
2021 年 12 月 13 日
The reason that you are receiving this error is that you must configure Excel to reference these functions within a macro. Follow these instructions to configure Excel properly:
1. If it is not already opened, open the Visual Basic Editor in Microsoft Excel (Alt+F11).
2. Pull down the Insert menu, select Macro and select Module.
3. When the Module page opens, pull down the Tools menu and select References...
4. In the References window, check the box for EXCLLINK.XLA and click OK. You may have to use "Browse..." to find the EXCLLINK.XLA file.
See the documentation for more information:
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Import from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!