Workbook.FollowHyperlink method (Excel)
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.
Syntax
expression.FollowHyperlink (Address, SubAddress, NewWindow, AddHistory, ExtraInfo, Method, HeaderInfo)
expression An expression that returns a Workbook object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
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. |
Method | Optional | Variant | Specifies the way ExtraInfo is attached. Can be one of the MsoExtraInfoMethod constants: msoMethodGet or msoMethodPost. |
HeaderInfo | Optional | Variant | A String that specifies header information for the HTTP request. The default value is an empty string. |
Example
This example loads the document at example.microsoft.com in a new browser window and adds it to the History folder.
ActiveWorkbook.FollowHyperlink Address:="https://example.microsoft.com"
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기