ScheduleForUser

The ScheduleForUser method opens a schedule file for a specific user.

Applies To

Application object

Syntax

objApplication.ScheduleForUser (UserAddress, UserName, ScheduleMode, OpenMode, UserEntryId)

Parameters

UserAddress
Required. Specifies the e-mail address of the user to which the schedule file belongs.
UserName
Optional. Specifies the display name of the user to which the schedule file belongs.
ScheduleMode
Optional. Specifies the mode in which to create the schedule file.
OpenMode
Optional. Specifies the mode in which to open the schedule file.
UserEntryId
Optional. Specifies the entry identifier of the user, which is required to open a schedule on the Microsoft Exchange server.

Returns

Schedule object

Remarks

The UserAddress parameter is always required. The UserName, ScheduleMode, OpenMode, and UserEntryId parameters are required only for Microsoft Exchange Server accounts; otherwise, they are optional.

Note The ScheduleForUser method does not accept named arguments.

The ScheduleMode parameter specifies what level of functionality the schedule should support. It can have one of the following values.

Value Description
1 Supports basic user information.
2 Supports free/busy information.
3 Supports Schedule+ 1.0-level functionality (appointments, tasks, and events).
4 Supports Schedule+ 7.0-level functionality (appointments, tasks, events, tasks, contacts, and so on).

The OpenMode parameter can have the following values.

Value Description
1 Never creates an object.
2 Creates a new schedule file, even if it already exists.
3 Creates a new schedule file only if the object does not exist.

See Also

ScheduleForFile