SetActiveView Method

Activates the specified window of the document.

Applies to: Document object

Syntax

[[Let] booleanRet =] object.SetAcitveView ( viewID )

The SetActiveView method syntax has these parts:

Part Description
object Required. An expression that returns a Document object.
viewID Required. An expression that returns a Long value. The ID (ID property) of the window of the document to be activated.
booleanRet Optional. A Boolean type variable.

Remarks

Note, that activating the document window directly modifies the value of the ActiveView property. If there is no window with the specified viewID in the window collection of the document, the SetActiveView method doesn't change the current active document view.

 

See Also

ActiveView property, Window object