I've created a simple ribbon:
I'd like to bind the buttons to subs in a module but I'm not sure how. I've created the subs in a seperate module. For example:
However when I press the buttons I get a message saying the the callback function or macro cannot be found.
As a second question I'd like to ask how you can bind custom images to these buttons?
Code:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="tabForms" label="Forms" visible="true">
<group id="groupExperiments" label="Experiments">
<button id="btnOverview" label="Overview" onAction="LoadFormOverview" />
<button id="btnNewExperiment" label="New Experiment" onAction="LoadFormNewExperiment" />
</group>
<group id="groupExplore" label="Explore and report">
<button id="btnReport" label="Report" onAction="LoadFormReport" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
I'd like to bind the buttons to subs in a module but I'm not sure how. I've created the subs in a seperate module. For example:
Code:
Public Sub LoadFormReport()
DoCmd.OpenForm "frmExplorer3"
End Sub
However when I press the buttons I get a message saying the the callback function or macro cannot be found.
As a second question I'd like to ask how you can bind custom images to these buttons?