Project) (Application.DetailStylesToggleItem 方法

會切換使用狀況檢視中時幅資料欄位的顯示。

語法

expression。 DetailStylesToggleItem( _Item_ )

expression 代表 Application 物件的變數。

參數

名稱 必要/選用 資料類型 描述
項目 選用 Long 要顯示或移除的時幅資料欄位。 預設值為 pjWork 。

傳回值

布林值

註解

If the active view is the Resource Usage view, can be one of the following PjTimescaledData constants:

PjTimescaledData 常數 PjTimescaledData 常數 續
pjActualCost pjCumulativeCost
pjActualOvertimeWork pjCumulativeWork
pjActualWork pjCV
pjACWP pjOverallocation
pjAllAssignmentRows pjOvertimeWork
pjAllResourceRows pjPeakUnits
pjBaselineCost pjPercentAllocation
pjBaselineWork pjRegularWork
pjBaseline1-10Cost pjRemainingAvailability
pjBaseline1-10工作 pjSV
pjBCWP pjWork
pjBCWS pjWorkAvailability
pjCost

If the active view is the Task Usage view, can be one of the following PjTimescaledData constants:

PjTimescaledData 常數 PjTimescaledData 常數 續
pjActualCost pjCumulativeCost
pjActualFixedCost pjCumulativeWork
pjActualOvertimeWork pjCV
pjActualWork pjCVP
pjACWP pjFixedCost
pjAllAssignmentRows pjOverallocation
pjAllTaskRows pjOvertimeWork
pjBaselineCost pjPeakUnits
pjBaselineWork pjPercentAllocation
pjBaseline1-10Cost pjPctComplete
pjBaseline1-10工作 pjRegularWork
pjBCWP pjSPIT
pjBCWS pjSV
pjCost pjSVP
pjCPI pjWork
pjCumPctComplete

支援和意見反應

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