Workbook.FollowHyperlink (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.

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

ActiveWorkbook.FollowHyperlink Address:="https://codevbacom"


The following argument is required

Address (String) - The address of the target document.

The following arguments are optional

SubAddress (String) - The location within the target document. The default value is the empty string.

NewWindow (Boolean) - True to display the target application in a new window. The default value is False.

AddHistory - Not used. Reserved for future use

ExtraInfo (String) - 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 - Specifies the way ExtraInfo is attached. Can be one of the MsoExtraInfoMethod constants: msoMethodGet or msoMethodPost

HeaderInfo (String) - A String that specifies header information for the HTTP request. The default value is an empty string.