You are here:   Command - onAction

Command - onAction

This callback will be executed after click on the Ribbon control.

 

Sample XML Ribbon File: 

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
    <commands>
        <command idMso="Cut" onAction="CallbackCut"/>        
        <command idMso="Copy" onAction="CallbackCopy"/>
    </commands>
</customUI>

Functions in a standard module:

Sub CallbackCut(control As IRibbonControl, ByRef CancelDefault)
   MsgBox "MyCallback Cut"
   CancelDefault = True
End Sub
  
Sub CallbackCopy(control As IRibbonControl, ByRef CancelDefault)
   MsgBox "MyCallback Copy"
   CancelDefault = True
End Sub

 



Back

 

 

 

 

 

 

Last Updates:

18.03.2021
New Download added. ...

25.10.2018
Update Site "Trusted Locations" ...

22.10.2018
New Download added. ...

08.04.2018
IDBE RibbonCreator 2016 (x86 and x64) for Office 2013 and Office 2016 - new release. ...

 

Last update: