URL Property

       

Returns or sets the URL that is used by the Execute or OpenURL methods.

Syntax

object.URL [= url]

The URL property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
url String that specifies the URL to be used in the Execute method.

Data Type

String

Remarks

Invoking the OpenURL or Execute method changes the value of this property.

Changing this property will have no effect until the next OpenURL or Execute method is called.

The URL property must contain at least a protocol and remote host name.

The URL property can be either a directory or a file. For example, both of the URLs below are valid:

' Setting this URL will return only the file directory:
Inet1.URL = "HTTP://www.microsoft.com"
' However, this URL will return the text of the file:
Inet1.URL = "HTTP://www.microsoft.com/disclaimer.txt"