HTMLProject.Open Method

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.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Sub Open ( _
    OpenKind As MsoHTMLProjectOpen _
)
'Usage
Dim instance As HTMLProject
Dim OpenKind As MsoHTMLProjectOpen

instance.Open(OpenKind)
void Open(
    MsoHTMLProjectOpen OpenKind
)

Parameters

Remarks

If one of the constants is not specified, the project item is opened in the default view.

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.

See Also

Reference

HTMLProject Interface

HTMLProject Members

Microsoft.Office.Core Namespace