ListSelection Property

Microsoft Word Visual Basic

ListSelection Property

Sets or returns a Long that represents the index number of the selected item in a smart document list box control.

expression.ListSelection

expression    Required. An expression that returns a SmartTagAction object.

Remarks

For more information on smart documents, please see the Smart Document Software Development Kit on the Microsoft Developer Network (MSDN) Web site.

Example

The following example selects the third item in the specified list box control. This example assumes that the first action for the first smart tag in the active document is a list box control.

    ActiveDocument.SmartTags(1) _
    .SmartTagActions(1).ListSelection = 3