run VBA MACRO in MATLAB
10 ビュー (過去 30 日間)
古いコメントを表示
HI, I want to run the VBA code(some small macro) from matlab.I can do that by invoking the Excel(using actxserver) and run the macro in the excel but my point is that i want to run the VBA macro directly from matlab without opening any third application
I hope i stated clearly my problem :)
0 件のコメント
回答 (1 件)
Walter Roberson
2011 年 12 月 13 日
VBA is only available as built in to applications; it is not available by itself. This is by design, as VBA is "Visual Basic for Applications".
3 件のコメント
Friedrich
2011 年 12 月 14 日
As long its a Macro in EXCEL you have to start EXCEL to run it. What does this Macro do? Maybe you can convert it to MATLAB code? Or maybe some VB script? You can run a VBS script without opening a 3rd application since this is a Windows built in feature.
Walter Roberson
2011 年 12 月 14 日
If it is VBA then unless you can rewrite it, you must start _some_ application in order to execute it, as VBA is, by definition, something that is built in to applications.
参考
カテゴリ
Help Center および File Exchange で Data Export to MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!