_Workbook.FollowHyperlink Method
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.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub FollowHyperlink ( _
Address As String, _
SubAddress As Object, _
NewWindow As Object, _
AddHistory As Object, _
ExtraInfo As Object, _
Method As Object, _
HeaderInfo As Object _
)
'Usage
Dim instance As _Workbook
Dim Address As String
Dim SubAddress As Object
Dim NewWindow As Object
Dim AddHistory As Object
Dim ExtraInfo As Object
Dim Method As Object
Dim HeaderInfo As Object
instance.FollowHyperlink(Address, SubAddress, _
NewWindow, AddHistory, ExtraInfo, _
Method, HeaderInfo)
void FollowHyperlink(
string Address,
Object SubAddress,
Object NewWindow,
Object AddHistory,
Object ExtraInfo,
Object Method,
Object HeaderInfo
)
Parameters
Address
Type: System.StringRequired String. The address of the target document.
SubAddress
Type: System.ObjectOptional Object. The location within the target document. The default value is the empty string.
NewWindow
Type: System.ObjectOptional Object. True to display the target application in a new window. The default value is False.
AddHistory
Type: System.ObjectOptional Object. Not used. Reserved for future use.
ExtraInfo
Type: System.ObjectOptional Object. 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.
Method
Type: System.ObjectOptional Object. Specifies the way ExtraInfo is attached. Can be one of the MsoExtraInfoMethod constants.
HeaderInfo
Type: System.ObjectOptional Object. A string that specifies header information for the HTTP request. The default value is an empty string.