A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

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



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 12th 06, 11:18 AM posted to microsoft.public.outlook.program_vba
Marceepoo
external usenet poster
 
Posts: 6
Default Newbie question: How to copy an email item from inbox to a folder

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
  #2  
Old November 1st 06, 07: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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question Mike Archer Outlook and VBA 1 July 17th 06 10:41 PM
Newbie question to CommandBars Claus Schiroky Outlook and VBA 1 May 10th 06 07:01 AM
After Sending Email: Save Copy of Message to Windows Folder Ben Outlook and VBA 1 March 25th 06 08:17 AM
Send an email copy to folder [email protected] Outlook - General Queries 3 February 16th 06 03:44 PM
Newbie question regarding corespondance Raffi Bearmant Outlook - General Queries 1 January 11th 06 11:37 AM


All times are GMT +1. The time now is 08:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.