From: Anonymous on
Hi,

I want to open a macro in Excel which is build in another excel-file. So the macro has a name like this:
Excelmacros.xls!vw_check

I tried to run this macro by matlab with:
Excel.ExecuteExcel4Macro('!Excelmacros.xls!vw_check()');

But the problem is the ! in the middle of the macro name.

Anyone an idea how to fix this?? I've also given the macro a shortcut (CTRL+M), so maybe it's a solution not to open the macro, but just to run the shortcut.

Tnx a lot!
From: Anonymous on
"@ddie ertser" <ivogrunn(a)hotmail.com> wrote in message <hpq84d$p6n$1(a)fred.mathworks.com>...
> Hi,
>
> I want to open a macro in Excel which is build in another excel-file. So the macro has a name like this:
> Excelmacros.xls!vw_check
>
> I tried to run this macro by matlab with:
> Excel.ExecuteExcel4Macro('!Excelmacros.xls!vw_check()');
>
> But the problem is the ! in the middle of the macro name.
>
> Anyone an idea how to fix this?? I've also given the macro a shortcut (CTRL+M), so maybe it's a solution not to open the macro, but just to run the shortcut.
>
> Tnx a lot!
Btw:
macro-name = vw_check
excel-file where it is build = Excelmacros
From: Ashish Uthama on
On Sat, 10 Apr 2010 13:14:06 -0300, @ddie ertser <ivogrunn(a)hotmail.com>
wrote:

> Hi,
>
> I want to open a macro in Excel which is build in another excel-file. So
> the macro has a name like this:
> Excelmacros.xls!vw_check
>
> I tried to run this macro by matlab with:
> Excel.ExecuteExcel4Macro('!Excelmacros.xls!vw_check()');
>
> But the problem is the ! in the middle of the macro name.
>
> Anyone an idea how to fix this?? I've also given the macro a shortcut
> (CTRL+M), so maybe it's a solution not to open the macro, but just to
> run the shortcut.
>
> Tnx a lot!

A guess: open the Excelmacros.xls in addition to whatever sheet/file you
are working on, then execute the macro using 'vw_chec()'