quicksilver
02-21-2008, 03:01 AM
Hi,
im really having a hard time getting this working. What i am trying to do is create a new tab with a button so that when the user clicks the button a form will load up, i have a macro setup but it doesnt run the macro.
Macro Name: StartForms
Macro just loads up a userform on .show
Below is my xml code to create the new tab:
<customUI>
<ribbon startFromScratch="true">
<tabs>
<tab id="tabMain" label="Home">
<group id="grpProjects" label="Projects">
<button id="cmdHome" label="Home" onAction="StartForms" size="large"
imageMso="OpenStartPage" supertip="Returns the userform."/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
When i click the button in msword i get the error code 'Wrong Number Of Arguments or Invalid Property Assignment' (Error Code 450).
im really having a hard time getting this working. What i am trying to do is create a new tab with a button so that when the user clicks the button a form will load up, i have a macro setup but it doesnt run the macro.
Macro Name: StartForms
Macro just loads up a userform on .show
Below is my xml code to create the new tab:
<customUI>
<ribbon startFromScratch="true">
<tabs>
<tab id="tabMain" label="Home">
<group id="grpProjects" label="Projects">
<button id="cmdHome" label="Home" onAction="StartForms" size="large"
imageMso="OpenStartPage" supertip="Returns the userform."/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
When i click the button in msword i get the error code 'Wrong Number Of Arguments or Invalid Property Assignment' (Error Code 450).