run VBA MACRO in MATLAB

조회 수: 12 (최근 30일)
Zunnoorain Farooqui
Zunnoorain Farooqui 2011년 12월 13일
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 :)

답변 (1개)

Walter Roberson
Walter Roberson 2011년 12월 13일
VBA is built in to Excel so a third application is not being invoked.
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
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
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 CenterFile Exchange에서 Data Export to MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by