SafeRibbon object

 

SafeRibbon control exposes a Ribbon control shown by an Outlook Inspector or Explorer .

 

Returned by:

SafeExplorer.Ribbon

SafeInspector.Ribbon

 

The example below simulates a click on the "Assign Task" button of an active (task) Inspector.

set sInspector = CreateObject("Redemption.SafeInspector")
sInspector.Item = Application.ActiveInspector
set Ribbon = sInspector.Ribbon
oldActiveTab = Ribbon.ActiveTab 'remember the currently selected tab
Ribbon.ActiveTab = "Task"
set Control = Ribbon.Controls("Assign Task")
Control.Execute
Ribbon.ActiveTab = oldActiveTab 'restore the active tab

 

 

The example below enumerates all controls displayed by the active Outlook Explorer.

set sExplorer = CreateObject("Redemption.SafeExplorer")
sExplorer.Item = Application.ActiveExplorer
for each Ctrl in sExplorer.Ribbon.Controls
    Debug.Print Ctrl.Name
next

 


Derived from: IDispatch


Properties


ActiveTab
String, read/write.
Returns or sets the name of the active tab.
 
 
Controls
Returns SafeRibbonControls collection representing the controls displayed by the active tab.
 
 
Tabs
Returns Strings collection representing the list of available tabs shown by an Outlook Inspector or Explorer