I've created a Tab and group with a button in WORD 2007 using the custom UI editor and the code below trying to start the macro "endmarker" ...
Clicking the button an error appears:
"wrong number of arguments or invalid property assignment"
Running the macro directly in WORD there is no problem !
Code:
<customUI xmlns="[URL unfurl="true"]http://schemas.microsoft.com/office/2006/01/customui">[/URL]
<ribbon startFromScratch="false">
<tabs>
<tab id="customTab" label="Custom">
<group id="Group" label="Group">
<button id="customButton" label="end" image="end" size="large" onAction="Module1.endmarker" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Clicking the button an error appears:
"wrong number of arguments or invalid property assignment"
Running the macro directly in WORD there is no problem !