I am attempting my 1st Ribbon. I have the USysRibbons table set up and I’m using the following XML:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="false">
<tabs>
<tab id="tabEntryForm" label="Entry Form Options">
<group id="grpEntryForm" label="Create Initial Record">
<button id="btnCreateInitialRecord" size="large" label=" "
imageMso="BevelShapeGallery"
onAction="onClickCreateInitialRecord"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
I have the following callback function in a module:
Public Function onClickCreateInitialRecord(ctrl As IRibbonControl)
{Do some stuff in here}
End Function
When I click the button I receive the following error:
Can’t run the macro or callback function ‘onClickCreateInitialRecord’
Make sure the macro or function exists and takes the correct parameters.
Where am I going wrong?
Thank you,
Don
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="false">
<tabs>
<tab id="tabEntryForm" label="Entry Form Options">
<group id="grpEntryForm" label="Create Initial Record">
<button id="btnCreateInitialRecord" size="large" label=" "
imageMso="BevelShapeGallery"
onAction="onClickCreateInitialRecord"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
I have the following callback function in a module:
Public Function onClickCreateInitialRecord(ctrl As IRibbonControl)
{Do some stuff in here}
End Function
When I click the button I receive the following error:
Can’t run the macro or callback function ‘onClickCreateInitialRecord’
Make sure the macro or function exists and takes the correct parameters.
Where am I going wrong?
Thank you,
Don