Sie sind hier:   Command - onAction

Command - onAction

 

Der Callback wird ausgeführt wenn auf das Ribbon Control geklickt wird.

 

Beispiel XML Ribbon Datei: 

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

Funktion in einem Standardmodul:

Sub CallbackCut(control As IRibbonControl, ByRef CancelDefault)
   MsgBox "Callback aufgerufen"
   CancelDefault = True
End Sub
  
Sub CallbackCopy(control As IRibbonControl, ByRef CancelDefault)
   MsgBox "Callback aufgerufen"
   CancelDefault = True
End Sub

 

 

 

 




Zurück

 

 

 

 

 

 

Letzte Änderungen:

18.03.2021
Neuer Download für Excel hinzugefügt. ...

25.10.2018
Seite "Vertrauenswürdige Speicherorte" - aktualisiert.. ...

22.10.2018
Neuer Download hinzugefügt. ...

08.04.2018
IDBE RibbonCreator 2016 (x86 and x64) für Office 2013 und Office 2016 - Neue Version. ...

 

Letzte Änderung: