Open Method

See Also         Example         Applies To

Opens the specified object.

Syntax 1: Opens the specified WebFile object.

Syntax 2: Opens the specified Web object.

Syntax 1

expression.Open

expression   An expression that returns a WebFile object.

Return Type

Void

Syntax 2

expression.Open(szWebUrl As String, [UserName As String], [Password As String])

expression   An expression that returns the Webs collection.

szWebUrl As String   Required String. The base URL of the web, such as "C:\My Webs". This can be any absolute URL, such as "http://web server" or "file://file system" for disk-based webs.

UserName   Optional String. The logon name of the user.

Password As String   Optional String. A designated string of characters to validate access to the specified web.

Return Type

Web