ActiveXControl Property

Microsoft Word Visual Basic

ActiveXControl Property

Returns an Object that represents an ActiveX control displayed in the Document Actions task pane.

expression.ActiveXControl

expression    Required. An expression that returns a SmartTagAction object.

Remarks

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

Example

The following example accesses the ActiveX control for the first smart tag in the active document. This example assumes that the first smart tag action for the specified smart tag is an ActiveX control.

    Dim objControl As Object

Set objControl = ActiveDocument.SmartTags(1) _
    .SmartTagActions(1).ActiveXControl