TabStrip object (Outlook Forms Script)

Presents a set of related controls as a visual group.

Remarks

Use a TabStrip to view different sets of information for related controls.

A TabStrip is a control that contains a collection of one or more tabs.

Each Tab of a TabStrip is a separate object that users can select. Visually, a TabStrip also includes a client area that all the tabs in the TabStrip share.

By default, a TabStrip includes two pages, called Tab1 and Tab2. Each of these is a Tab object, and together they represent the Tabs collection of the TabStrip. If you add more pages, they become part of the same Tabs collection.

For example, the controls might represent information about a daily schedule for a group of individuals, with each set of information corresponding to a different individual in the group. Set the title of each tab to show one individual's name. Then, you can write code that, after you click a tab, updates the controls to show information about the person identified on the tab.

The TabStrip is implemented as a container of a Tabs collection, which in turn contains a group of Tab objects. The TabStrip control does not support the Click event.

The default property for a TabStrip is the SelectedItem property.

Events

Name Description
Click Occurs when the user clicks inside the control.

Properties

Name Description
BackColor Returns or sets a Long that specifies the background color of the object. Read/write.
ClientHeight Returns a Single value that represents the height dimension of the display area of a TabStrip. Read-only.
ClientLeft Returns a Single value that represents the location of the left edge of the display area of a TabStrip. Read-only.
ClientTop Returns a Single value that represents the location of the top edge of the display area of a TabStrip. Read-only.
ClientWidth Returns a Single value that represents the width dimension of the display area of a TabStrip. Read-only.
Enabled Returns or sets a Boolean that specifies whether a control can receive the focus and respond to user-generated events. Read/write.
ForeColor Returns or sets a Long that specifies the foreground color of an object. Read/write.
MouseIcon Returns a String that represents the full path name of a custom icon that is to be assigned to the control. Read-only.
MousePointer Returns or sets an Integer that specifies the type of pointer displayed when the user positions the mouse over a particular object. Read/write.
MultiRow Returns or sets a Boolean that specifies whether the control has more than one row of tabs. Read/write.
SelectedItem Returns an Object that indicates the currently selected Tab object. Read-only.
Style Returns or sets an Integer that identifies the style of the tabs on the control. Read/write.
TabFixedHeight Returns or sets a Single that represents the height in points of the tabs on a TabStrip. Read/write.
TabFixedWidth Returns or sets a Single that represents the width in points of the tabs on a TabStrip. Read/write.
TabOrientation Returns or sets an Integer that specifies the location of the tabs on a TabStrip. Read/write.
Value Returns or sets a Variant that indicates the currently active tab. Read/write.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.