Pairs Object

<< Click to Display Table of Contents >>

Navigation:  Developer Edition > Visual Basic for Applications (VBA) > Object Model Reference >

Pairs Object

Previous pageReturn to chapter overviewNext page

Collection of pair objects.

 

Methods

Name

Description

Adds matched pairs using MatchType and MatchInclude properties.

Adds a pair to the Pairs collection.

Clears the pairs collection.

Removes specified pair from the collection.

 

Properties

Name

Description

Returns the number of members in the collection.

Returns true if pairs exist and each pair is valid.

Returns a single item (pair) from the collection.

Returns or sets options specifying types of worksheets to include by AddMatched method.

Returns or sets a constant specifying how worksheets will be matched by AddMatched method.

Returns or sets a semicolon delimited list of passwords needed to access protected sheets.

 

Events

Name

Description

none

 

Remarks

You can add pairs individually with the Add Method or use the AddMatched method to automatically add pairs for all worksheets that have matching names or indexes.
 
You can retrieve a specific pair with Pairs(Index) or Pairs.Item(Index).
You can remove a specific pair with Pairs.Remove(Index).
You can remove all pairs by using the Clear Method.