Workbook.FollowHyperlink Method
Displays a cached document, if it has already been downloaded. Otherwise, this method resolves the hyperlink, downloads the target document, and displays the document in the appropriate application.
Namespace: Microsoft.Office.Tools.Excel
Assemblies: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.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 _
)
void FollowHyperlink(
string Address,
Object SubAddress,
Object NewWindow,
Object AddHistory,
Object ExtraInfo,
Object Method,
Object HeaderInfo
)
Parameters
Address
Type: System.StringThe address of the target document.
SubAddress
Type: System.ObjectThe location within the target document. The default value is the empty string.
NewWindow
Type: System.Objecttrue to display the target application in a new window. The default value is false.
AddHistory
Type: System.ObjectNot used. Reserved for future use.
ExtraInfo
Type: System.ObjectA 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.ObjectSpecifies the way ExtraInfo is attached. Can be one of the following Microsoft.Office.Core.MsoExtraInfoMethod constants: Microsoft.Office.Core.MsoExtraInfoMethod.msoMethodGet or Microsoft.Office.Core.MsoExtraInfoMethod.msoMethodPost.
HeaderInfo
Type: System.ObjectA string that specifies header information for the HTTP request. The default value is an empty string.
Remarks
Optional Parameters
For information on optional parameters, see Optional Parameters in Office Solutions.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.