Application.TimelineBarDateRange 方法 (Project)Application.TimelineBarDateRange Method (Project)

修改“时间线”**** 栏的开始日期和完成日期。Modifies the start and finish dates for a Timeline bar. 在 Office 2016 中引入。Introduced in Office 2016.


expressionexpression. TimelineBarDateRange( CustomDatesStartDate FinishDateBarIndex)TimelineBarDateRange( CustomDates, StartDate, FinishDate, BarIndex)

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


名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
CustomDatesCustomDates 可选Optional 布尔Boolean 指示是否日程表条应使用自定义日期。Indicates if the timeline bar should use custom dates. 如果未指定 true,则和开始和完成值,使用当前项目的开始和完成日期。If true, and the start and finish values are not specified, uses the current project's start and finish dates. 如果为 false,则将忽略任何其他值。If false, ignores any of the other values.
StartValueStartValue 可选Optional 变量Variant 开始日期。Start date.
FinishValueFinishValue 可选Optional 变量Variant 完成日期。Finish date.
TimelineViewNameTimelineViewName 可选Optional 字符串String 指定要使用的日程表的名称。Specifies the name of a timeline to use. 名称可以是内置的时间线或现有的自定义日程表,例如"我的时间线"。The name can be the built-in timeline or an existing custom timeline such as "My Timeline". 默认值为活动日程表的名称。The default value is the name of the active timeline.

返回值Return value