A
ATS
HOWTO Add script to a Word project for a CommandBarButton to call.
Please help,
I'm trying to add a button to the active menu bar to calls my script. I have
found easily how to add the command bar button, and set its OnAction, but I
do not see how I can create script dynamically that in turn the button will
then call. I have tried the Scripts collection to add script, but right off
the bat, I do not see where the script "ends" up, and the OnAction can not
seem to call it.
I have also looked at AddIns, but AddIns wants a file, and I'm trying to add
the script dynamically, so AddIns "Add" method will not work.
What can I do?
Please help,
I'm trying to add a button to the active menu bar to calls my script. I have
found easily how to add the command bar button, and set its OnAction, but I
do not see how I can create script dynamically that in turn the button will
then call. I have tried the Scripts collection to add script, but right off
the bat, I do not see where the script "ends" up, and the OnAction can not
seem to call it.
I have also looked at AddIns, but AddIns wants a file, and I'm trying to add
the script dynamically, so AddIns "Add" method will not work.
What can I do?