Syntax

expression.Add(URL, Description, Notes)

expression Required. A variable that represents a object.

Parameters

Name Required/Optional Data Type Description
URL Required String The address of the Web site to which a link is being added.
Description Optional String Description of the link.
Notes Optional String Notes about the link.

Return Value
SharedWorkspaceLink

Example

The following example adds a new link to the links collection of the shared workspace.

Visual Basic for Applications
 Dim swsLink As Office.SharedWorkspaceLink Set swsLink = ActiveWorkbook.SharedWorkspace.Links.Add( _ "http://msdn.microsoft.com", _ "Microsoft Developer Network Home Page", _ "My favorite developer site!") MsgBox "New link: " & swsLink.Description, _ vbInformation + vbOKOnly, _ "New Link in Shared Workspace" Set swsLink = Nothing 

See also: