Open Method

         Example         Applies To

Opens the specified HTML project or HTML project item in the Microsoft Script Editor in one of the views specified by the optional MsoHTMLProjectOpen constants (msoHTMLProjectOpenSourceView and msoHTMLProjectOpenTextView). If one of the constants is not specified, the project item is opened in the default view.

Syntax

expression.Open(OpenKind)

expression   Required. An HTMLProject or HTMLProjectItem object.

OpenKind   Optional Integer. The view in which the specified project or project item is opened.

Remarks

The default view is determined by whether or not the Microsoft Script Editor is open when the Open method is executed. If the Script Editor is not open, the Open method starts the Script Editor in source view. If the Script Editor is already open, the Open method activates the Script Editor and displays the script in the current view.