View Single Post
  #2  
Old November 1st 06, 06:54 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Newbie question: How to copy an email item from inbox to a folder

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Marceepoo" wrote in message ...
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


Ads