FollowHyperlink Method
Applies To
Presentation object.
Description
Displays a cached document, if it has already been downloaded. Otherwise, this method resolves the hyperlink, downloads the target document and displays it in the appropriate application.
Syntax
expression.FollowHyperlink(Address, SubAddress, NewWindow, AddHistory,
ú ExtraInfo, Method)
expression Required. An expression that returns a Presentation object.
Address Required String. The address of the target document.
SubAddress Optional String. The location in the target document. By default, this argument is an empty string.
NewWindow Optional Long. True to have the target application opened in a new window. The default value is False.
AddHistory Optional Long. Not used. Reserved for future use.
ExtraInfo Optional String. String or byte array that specifies information for HTTP. This argument can be used, for example, to specify the coordinates of an image map or the contents of a form. It can also indicate a FAT file name. The Method argument determines how this extra information is handled.
Method Optional Long. Specifies the way additional information for HTTP specified by the ExtraInfo argument is handled. Can be one of the following MsoFollowMethod constants.
Constant | Description |
|
msoGet | ExtraInfo is a String that is appended to the address. This is the default value. |
msoPost | ExtraInfo is posted as a String or byte array. |
msoPostFile | ExtraInfo specifies a FAT file name; the file content is posted. |
See Also
Address property, SubAddress property.
Example
This example loads the document at www.gohere.com in a new window and adds it to the history folder.
ActivePresentation.FollowHyperlink _
Address:="http://www.gohere.com", NewWindow:=True, AddHistory:=True