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

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


表达式expression. 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 BooleanBoolean 指示是否日程表条应使用自定义日期。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 StringString 指定要使用的日程表的名称。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


支持和反馈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.