Pairs.AddPair Method

<< Click to Display Table of Contents >>

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

Pairs.AddPair Method

Previous pageReturn to chapter overviewNext page

Adds a pair to the Pairs collection.

 

Syntax

expression.AddPair(Sheet0,Sheet1,Range0,Range1,DBoptions,WSoptions,DBrow,DBkeys)

expression. A variable representing a Pairs object.

 

Parameters

Name

Type

Description

Sheet0

String

A worksheet name of the source file.

Sheet1

String

A worksheet name of the target file.

Range0

String

A range address of the source worksheet.

Range1

String

A range address of the target worksheet.

DBOptions

DBOptionFlag

If the worksheet is a database, enter database options here.

WSoptions

WSOptionFlag

If the worksheet should be linked 1 on 1, enter linking options.

DBRow

Long

If database comparison, enter row with database column/field names.

DBKeys

String

If database comparison, enter the column number(s) which contain(s) the primary key(s). Separate numbers by semicolon(s).

 

Return Value

Returns a Pair object