This topic has not yet been rated - Rate this topic

AppointmentItem.CopyTo Method (Outlook)

Published: July 16, 2012

Copies the AppointmentItem to the folder that is specified by the DestinationFolder parameter and returns an object that represents the item created in the destination folder by the copy operation.

Version Added: Outlook 2010

expression .CopyTo(DestinationFolder, CopyOptions)

expression A variable that represents an AppointmentItem object.

Parameters

Name

Required/Optional

Data Type

Description

DestinationFolder

Required

Folder

Specifies the folder to which the AppointmentItem object is copied.

CopyOptions

Required

OlAppointmentCopyOptions

Specifies the user experience of the copy operation.

Return Value

Returns an AppointmentItem that represents the object created in the destination folder as a result of the copy operation.

If no argument is specified for the CopyOptions parameter, CopyTo assumes that the value is olCreateAppointment.

CopyTo returns an error if the destination folder is not an appropriate folder type for an AppointmentItem object, or if the user does not have the necessary permissions to create items in the specified destination folder.

Setting the REG_MULTI_SZ value, DisableCrossAccountCopy, in HKCU\Software\Microsoft\Office\15.0\Outlook in the Windows registry has the side effect of disabling this method.

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.