共用方式為


Application.GanttBarLinks 方法 (Project)

顯示或隱藏甘特圖上的任務連結。

語法

expressionGanttBarLinks( _Display_ )

expression 代表 Application 物件的變數。

參數

名稱 必要/選用 資料類型 描述
Display 選用 Long 其中的連結會繪製從前置任務連結的結尾。 可以是 PjGanttBarLink 常數之一。 預設值為 PjNoGanttBarLinks

傳回值

布林值

範例

下列範例會先清除連結,然後再從一個任務長條圖的結尾到下一個任務長條圖的頂端顯示連結。

Sub GanttBar_Links() 
'First clear links, than links from end to top of the next bar 
 'Activate Gantt Chart view 
 ViewApply Name:="&Gantt Chart" 
 GanttBarLinks pjNoGanttBarLinks 
 GanttBarLinks pjToTop 
End Sub

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應