FancyPrairie
Programmer
I want to place a button on a custom ribbon but can not figure out the syntax. When the user clicks the button, I want it to call a function with 2 arguments. This is how its called via a menubar in Access 2003:
=MyFunction("arg1","arg2")
What's the syntax for a ribbon? This is what I have so far:
=MyFunction("arg1","arg2")
What's the syntax for a ribbon? This is what I have so far:
Code:
<customUI xmlns="[URL unfurl="true"]http://schemas.microsoft.com/office/2006/01/customui">[/URL]
<ribbon startFromScratch="false">
<tabs>
<tab idMso="TabCreate" visible="false" />
<tab id="dbCustomTab" label="My Custom Tab" visible="true">
<group id="dbCustomGroup" label="My Group 1">
<button id="id" label="phone book" onAction="MyFunction(""MyForm"",""Hide"")" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>