Specifies the index number of the currently indexed message. This property is not available at design time.
Syntax
object.MsgIndex [ = value ]
The MsgIndex property syntax these parts:
Part | Description |
Object | An object expression that evaluates to an object in the Applies To list. |
Value | A long expression specifying the index number of the currently indexed message. |
Remarks
The MsgIndex property determines the values of all the other message-related properties of the MAPI Messages control. The index number can range from -1 to MsgCount -1.
Note Changing the MsgIndex property also changes the entire set of attachments and recipients.
The message identified by the MsgIndex property is called the currently indexed message. When this index is changed, all of the other message properties change to reflect the characteristics of the indexed message. A value of -1 signifies a message being built in the compose buffer — in other words, an outgoing message.
Data Type
Long