Moving Mail Items from Mailbox to Personal Folders

  • Thread starter Thread starter cddiller
  • Start date Start date
C

cddiller

Hi All,

I've looked around and found similar questions, but nothing quite what
I'm trying to do.

I want to create a macro that will move the contents of my "online"
Deleted Items folder to my "offline" personal file deleted items
folder. The post at:
http://groups.google.com/group/micr...tents+of+folder&rnum=1&hl=en#1e90092136788468

does this between two folders both in the same outlook file.

They're setting up the files as follows:

Set oFolderParent =
objNameSpace.GetDefaultFolder(olFolderInbox).Parent
Set objmyFolder = oFolderParent.Folders("SOURCE")
Set objDestination = oFolderParent.Folders("DESTINTATION")

And I need objDestination to be in a different folder tree (on my
"offline" personal file.

Thanks!
 
To get a non-default folder, you need to walk the folder hierarchy using the Folders collections or use a function that does that for you. See http://www.outlookcode.com/d/code/getfolder.htm
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
That's exactly what I needed! Thanks so much!

To get a non-default folder, you need to walk the folder hierarchy using the Folders collections or use a function that does that for you. See http://www.outlookcode.com/d/code/getfolder.htm
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top