Custom ribbon OnAction

hbrems

has no clue...
Local time
Today, 17:36
Joined
Nov 2, 2006
Messages
181
I've created a simple ribbon:

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?
 
Thanks Bob, I'll look into it today!
 

Users who are viewing this thread

Back
Top Bottom