Newbie question: How to copy an email item from inbox to a folder

G

Guest

I'm using Outlook with an Exchange server account. I'm having trouble
figuring out how to copy email items from the user's Exchange Inbox:
1. To a folder named "Clients" which is NOT a subfolder of the Inbox, i.e.,
the folder "Clients" in the user's mailbox at the same level as the Inbox
folder.

If you have the time, please also indicate how to copy an email item
from the Inbox.....
2. To a folder named "Smith Enriquo" which is a subfolder of the folder
"Clients" mentioned above in #1.

Any tips or examples would be much appreciated. Thanks in advance for your
time, energy and help. It's much appreciated.
marceepoo
 
S

Sue Mosher [MVP-Outlook]

1) Every folder has a Parent folder and a Folders collection. Get the Inbox, then get its parent, then get the parent's child folder. This would be VBA code:

Set inbox = Application.Session.GetDefaultFolder(olFolderInbox)
Set clients = inbox.Parent.Folders("Clients")
Set theCopy = theItem.Copy
theCopy.Move clients

2) You should be able to figure that one out yourself from the above.

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