Edit

Share via


Hyperlinks.Add(Object, Object, Object, Object, Object, Object) Method

Definition

Returns a Hyperlink object that represents a new hyperlink added to a range, selection, or document.

public Microsoft.Office.Interop.Word.Hyperlink Add (object Anchor, ref object Address, ref object SubAddress, ref object ScreenTip, ref object TextToDisplay, ref object Target);
abstract member Add : obj * obj * obj * obj * obj * obj -> Microsoft.Office.Interop.Word.Hyperlink
Public Function Add (Anchor As Object, Optional ByRef Address As Object, Optional ByRef SubAddress As Object, Optional ByRef ScreenTip As Object, Optional ByRef TextToDisplay As Object, Optional ByRef Target As Object) As Hyperlink

Parameters

Anchor
Object

Required Object. The text or graphic that you want turned into a hyperlink.

Address
Object

Optional Object. The address for the specified link. The address can be an e-mail address, an Internet address, or a file name. Note that Microsoft Word doesn't check the accuracy of the address.

SubAddress
Object

Optional Object. The name of a location within the destination file, such as a bookmark, named range, or slide number.

ScreenTip
Object

Optional Object. The text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink. The default value is Address.

TextToDisplay
Object

Optional Object. The display text of the specified hyperlink. The value of this argument replaces the text or graphic specified by Anchor.

Target
Object

Optional Object. The name of the frame or window in which you want to load the specified hyperlink.

Returns

Applies to