Sequence Object
The Sequence object manages sequence numbers for a specific class of objects. Sequences are useful for generating unique numbers used in calculating document names. The scope of a sequence is determined by its parent object.
The Sequence object provides the following properties.
Increment the current sequence value or start a new sequence at an optional specified value. Read-only. The value of StartAt must be higher than the current sequence value.
Syntax
Next(StartAt)As Long
The current sequence value. Read-only.
Syntax
Value As Long
The Sequence object provides the methods described below.
Set the current sequence to a new number.
Syntax
SetTo(Number)
Parameters
Number
|
Long integer with which to set the sequence.
|
Return Value
The new (Long) number.