Name
hyperlinks.Add(Anchor, Address, [SubAddress], [ScreenTip], [TextToDisplay])
Synopsis
Adds a hyperlink.
|
Argument |
Settings |
|---|---|
|
|
A |
|
|
The URL to navigate to when the hyperlink is clicked. |
|
|
A location on the page. |
|
|
A tool tip to display when the mouse pointer pauses over the hyperlink. |
|
|
The text to show on screen in place of the hyperlink. |
For example, the following code adds a hyperlink to range A1:
Sub AddHyperlink( )
Dim ws As Worksheet
Set ws = ActiveSheet
ws.Hyperlinks.Add [a1], "http:\\excelworkshop.com\", _
, "Go to Jeff's site.", "Excel Workshop"
End SubBecome an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access