SafeRibbonControl object

 

SafeRibbonControl wraps a control displayed by an Outlook  ribbon.

 

Returned by:

SafeRibbonControls.Item.

 

The example below simulates a click on the Meeting button of an active Outlook inspector.

set sInspector = CreateObject("Redemption.SafeInspector")
sInspector.Item = Application.ActiveInspector
set Ribbon = sInspector.Ribbon
oldActiveTab = Ribbon.ActiveTab
Ribbon.ActiveTab = "Message"
set Control = Ribbon.Controls("Meeting")
Control.Execute
Ribbon.ActiveTab = oldActiveTab 'restore the active tab

 

 

Properties

Methods

 


Derived from: IDispatch


Properties


Description String, read/only.
Returns the control's description.
 
 
Enabled Boolean, read/only.
Returns TRUE if the control is enabled.
 
 
Height Integer, read-only.
Returns the height of the control.
 
 
Left Integer, read-only.
Returns the left coordinate of the control.
 
 
Name String, read/only.
Returns the control's name.
 
 
Top Integer, read-only.
Returns the top coordinate of the control.
 
 
Type Integer, read-only.
Returns the type of the control as reported by the Accessibility API.
 
Visible Boolean, read/only.
Returns TRUE if the control is visible.
 
Width Integer, read-only.
Returns the width of the control.
 
 

Methods


Execute Executes control's default action, such as click.