Sie sind hier: Command - getEnabled
Command - getEnabled
Gibt dem Access Ribbon Control zurück ob es aktiviert ist
Beispiel XML Ribbon Datei:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <commands> <command idMso="Cut" onAction="CallbackCut" getEnabled="CallbackGetEnabled"/> <command idMso="Copy" onAction="CallbackCopy"/> </commands> </customUI>
Funktion in einem Standardmodul:
Option Compare Database Option Explicit Public bolEnabled As Boolean Sub CallbackGetEnabled(control As IRibbonControl, _ ByRef enabled) ' Callback für Enabled enabled = bolEnabled End Sub