Edit

SharedWorkspaceLinks.Add method (Office)

Adds a link to the list of links in a shared workspace.

Note

Beginning with Microsoft Office 2010, this object or member has been deprecated and should not be used.

Syntax

expression.Add (URL, Description, Notes)

expression Required. A variable that represents a SharedWorkspaceLinks object.

Parameters

Name Required/Optional Data type Description
URL Required String The address of the website 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.

    Dim swsLink As Office.SharedWorkspaceLink 
    Set swsLink = ActiveWorkbook.SharedWorkspace.Links.Add( _ 
        "https://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

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.