INF What can OnAction call other than AddIns?

A

ATS

INF What can OnAction call other than AddIns?

What things can OnAction call other than AddIn?

Can one create a command bar button and set OnAction to then call a BATCH
file?

Is there a way to have OnAction call a URL? An HTA? An EXE?
 
S

Steve Rindsberg

INF What can OnAction call other than AddIns?

What things can OnAction call other than AddIn?

Can one create a command bar button and set OnAction to then call a BATCH
file?

Is there a way to have OnAction call a URL? An HTA? An EXE?

OnAction can call subroutines within the current add-in and possibly within
other addins in the same application.

But the subroutine can call a batch file, exe or whatever you like.
 
A

ATS

Thanks for the reply,

Is there any "built in" add in or macro that the OnAction can call to then
in turn call an EXE, HTA, URL, BATCH file? Specifically, I do not want to
create, or add an "AddIn" or macro. I want to use one that is always there.
 
J

Jonathan West

ATS said:
Thanks for the reply,

Is there any "built in" add in or macro that the OnAction can call to then
in turn call an EXE, HTA, URL, BATCH file? Specifically, I do not want to
create, or add an "AddIn" or macro. I want to use one that is always
there.

The macro you call could read the Tag property of the button that called it,
and take action accordingly. So for instance, if you stored the pathname of
a batch file or vbs file, the macro could shell out to that.

The ActionControl property returns the button that called the macro.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
A

ATS

Thanks for the reply, but is there any already built-in macro or "AddIn" that
is always available that one can set the OnAction to call which in turn can
then call some script, EXE, BATCH, URL, HTA, or anything.

Example:

The AddIn "I_Can_Call_An_HTA" always exists with any and every Office 2000
product, and is always available for OnAction.

MyCommandBarButton.OnAction = "=I_Can_Call_An_HTA.CallHta(""MyHTA"")"

I'm not sure of the OnAction format, I know that some want the format to be
something like this:

MyCommandBarButton.OnAction = "=!I_Can_Call_An_HTA.CallHta(""MyHTA"")"
 
J

Jonathan West

ATS said:
Thanks for the reply, but is there any already built-in macro or "AddIn"
that
is always available that one can set the OnAction to call which in turn
can
then call some script, EXE, BATCH, URL, HTA, or anything.

You've already been told "no" on that.
Example:

The AddIn "I_Can_Call_An_HTA" always exists with any and every Office 2000
product, and is always available for OnAction.

MyCommandBarButton.OnAction = "=I_Can_Call_An_HTA.CallHta(""MyHTA"")"

I'm not sure of the OnAction format, I know that some want the format to
be
something like this:

MyCommandBarButton.OnAction = "=!I_Can_Call_An_HTA.CallHta(""MyHTA"")"


Step back and tell us what you are trying to achieve here.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
S

Steve Rindsberg

Thanks for the reply,

Is there any "built in" add in or macro that the OnAction can call to then
in turn call an EXE, HTA, URL, BATCH file?

No, afraid not.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top