Table of contents
TOC
折叠目录
展开目录

Task.Hyperlink 属性 (项目)Task.Hyperlink Property (Project)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

获取或设置表示超链接地址的友好名称。名称也可能是一个 URL 或 UNC 路径。读/写,字符串Gets or sets a friendly name representing a hyperlink address. The name may also be a URL or UNC path. Read/write String.

语法Syntax

表达式超链接expression. Hyperlink

表达式_一个表示任务对象的变量。_expression A variable that represents a Task object.

示例Example

下面的示例向活动项目中的所有任务(包括子项目中的任务)都添加了一个超链接。The following example adds a hyperlink to all tasks in the active project, including tasks in subprojects.

Sub AddHyperlink() 
 Dim T As Task 

 For Each T In ActiveProject.Tasks 
 If Not (T Is Nothing) Then 
 T.Hyperlink = "Microsoft" 
 T.HyperlinkAddress = "http://www.microsoft.com/" 
 End If 
 Next T 

End Sub
© 2018 Microsoft