次の方法で共有


Calendars オブジェクト (Project)

Calendar オブジェクトのコレクションを格納します。

Calendar オブジェクトの使い方

単一の Calendar オブジェクトを返すには、BaseCalendars (index) を使用します。index は予定表のインデックス番号またはカレンダー名です。

MsgBox ActiveProject.BaseCalendars(1).Name

Calendars コレクションの使い方

Use the BaseCalendars property to return a Calendars collection. The following example resets the properties of each base calendar in the active project to their default values.

Dim C As Calendar 

 

For Each C In ActiveProject.BaseCalendars 

 C.Reset 

Next C

Use the BaseCalendarCreate method to add a Calendar object to the Calendars collection. The following example creates a new base calendar.

BaseCalendarCreate Name:="Base Holiday Calendar"

プロパティ

名前
アプリケーション
Count
アイテム
Parent

関連項目

Project オブジェクト モデル

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。