Click to Rate and Give Feedback
MSDN
MSDN Library
Office Development
Office 2003
Reference
Methods
F
 FollowHyperlink Method [Excel 2003 ...
Collapse All/Expand All Collapse All
Office Excel 2003 VBA Language Reference
FollowHyperlink Method [Excel 2003 VBA Language Reference]

Displays a cached document, if it's already been downloaded. Otherwise, this method resolves the hyperlink, downloads the target document, and displays the document in the appropriate application.

expression.FollowHyperlink(Address, SubAddress, NewWindow, AddHistory, ExtraInfo, Method, HeaderInfo)

expression Required. An expression that returns a Workbook object.

Address   Required String. The address of the target document.

SubAddress   Optional Variant. The location within the target document. The default value is the empty string.

NewWindow   Optional Variant. True to display the target application in a new window. The default value is False.

AddHistory   Optional Variant. Not used. Reserved for future use.

ExtraInfo   Optional Variant. A String or byte array that specifies additional information for HTTP to use to resolve the hyperlink. For example, you can use ExtraInfo to specify the coordinates of an image map, the contents of a form, or a FAT file name.

HeaderInfo   Optional Variant. A String that specifies header information for the HTTP request. The defaut value is an empty string.

Example

This example loads the document at example.microsoft.com in a new window and adds it to the History folder.

ActiveWorkbook.FollowHyperlink Address:="http://example.microsoft.com", _
    NewWindow:=True
		


Applies to | Workbook Object



© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker