Moving Mail Items from Mailbox to Personal Folders

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!
 
S

Sue Mosher [MVP-Outlook]

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
 
C

cddiller

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top