SharedWorkspace 属性 (Office)SharedWorkspace.Links property (Office)

获取一个**SharedWorkspaceLinks** 集合, 该集合代表当前共享工作区中保存的链接的列表。Gets a SharedWorkspaceLinks collection that represents the list of links saved in the current shared workspace. 只读。Read-only.

备注

自 Microsoft Office 2010 开始,此对象或成员已弃用,不应再行使用。Beginning with Microsoft Office 2010, this object or member has been deprecated and should not be used.

语法Syntax

表达式链接expression.Links

_表达式_一个代表**SharedWorkspace** 对象的变量。expression A variable that represents a SharedWorkspace object.

示例Example

下面的示例将列出保存在当前共享工作区中的链接。The following example lists the links saved in the current shared workspace.

  Dim swsLinks As Office.SharedWorkspaceLinks 
    Set swsLinks = ActiveWorkbook.SharedWorkspace.Links 
    MsgBox "There are " & swsLinks.Count & _ 
        " link(s) in the current shared workspace.", _ 
        vbInformation + vbOKOnly, _ 
        "Collection Information" 
    Set swsLinks = Nothing 

另请参阅See also

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.