Skip to Content
CDO & MAPI Programming with Visual Basic:
book

CDO & MAPI Programming with Visual Basic:

by Dave Grundgeiger
October 2000
Intermediate to advanced
384 pages
10h 22m
English
O'Reilly Media, Inc.
Content preview from CDO & MAPI Programming with Visual Basic:

Copying, Moving, and Deleting

Because CDO represents tasks as Message objects, all of the methods available to messages are also available to tasks. For example, a task can be copied to another folder using the Message object’s Copy method, as shown here:

Set CdoMessage2 = CdoMessage.CopyTo(CdoFolder2.ID, CdoFolder2.StoreID)
CdoMessage2.Update

or moved to a different folder, as shown here:

Set CdoMessage2 = CdoMessage.MoveTo(CdoFolder2.ID, CdoFolder2.StoreID)

or deleted, as shown here:

CdoMessage.Delete DeletedItems:=True

For detailed discussion of these and other Message object methods, refer to Chapter 6 and Chapter 7.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Excel® 2007 VBA Programmer's Reference

Excel® 2007 VBA Programmer's Reference

John Green, Stephen Bullen, Rob Bovey, Michael Alexander
COM Programming with Microsoft® .NET

COM Programming with Microsoft® .NET

John Paul Mueller, Julian Templeman

Publisher Resources

ISBN: 156592665XSupplemental ContentCatalog PageErrata