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

Create folder based on senders name in the Inbox



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 28th 07, 05:07 PM posted to microsoft.public.outlook.program_vba
S1lverface
external usenet poster
 
Posts: 8
Default Create folder based on senders name in the Inbox

Can anyone help. I'm new to the vba stuff..

I want to move all the e-mails from my Inbox to a folder with the same name
as the sender. I want my program to check if a folder exists for that sender,
if not create it, and move the message to that specific folder.

Could anybody give me some hints how to do this.


Ads
  #2  
Old November 28th 07, 07:10 PM posted to microsoft.public.outlook.program_vba
S1lverface
external usenet poster
 
Posts: 8
Default Create folder based on senders name in the Inbox

Or if possible, to use VBA to create a folder for every contact in my address
book....

"S1lverface" wrote:

Can anyone help. I'm new to the vba stuff..

I want to move all the e-mails from my Inbox to a folder with the same name
as the sender. I want my program to check if a folder exists for that sender,
if not create it, and move the message to that specific folder.

Could anybody give me some hints how to do this.


  #3  
Old November 29th 07, 05:45 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Create folder based on senders name in the Inbox



Please look three days back in this ng: "Move and create folder based on
subject". Instead of Subject read the SenderEMailAddress proeprty.

--
Best regards
Michael Bauer - MVP Outlook
Synchronize Color Categories & Ensure that Every Item Gets Categorized:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Wed, 28 Nov 2007 09:07:04 -0800 schrieb S1lverface:

Can anyone help. I'm new to the vba stuff..

I want to move all the e-mails from my Inbox to a folder with the same

name
as the sender. I want my program to check if a folder exists for that

sender,
if not create it, and move the message to that specific folder.

Could anybody give me some hints how to do this.

  #4  
Old December 5th 07, 11:10 AM posted to microsoft.public.outlook.program_vba
S1lverface
external usenet poster
 
Posts: 8
Default Create folder based on senders name in the Inbox

Thanks Michael.

I'm wondering a couple of things when moving mail from my 'Inbox' to
folders. If you could help, that would be great :

1- If i receive mail from several people who all work for the same company -
Instead of using the [SenderName] = ' ', can I put a wild
card type thing to pick up the mail from all senders whose extension is
@mydomain.com or can I write [SenderName] = '
',
[SenderName] = '
', [SenderName] = '
' etc

2- I also use similar code to move from my 'Sent Items' to my sent
subfolders, However, if the mail i sent had several recipients, these e-mails
are left behind. Can I write code so as it knows to move those e-mails to the
subfolder of the first recipient in the list.

"Michael Bauer [MVP - Outlook]" wrote:



Please look three days back in this ng: "Move and create folder based on
subject". Instead of Subject read the SenderEMailAddress proeprty.

--
Best regards
Michael Bauer - MVP Outlook
Synchronize Color Categories & Ensure that Every Item Gets Categorized:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Wed, 28 Nov 2007 09:07:04 -0800 schrieb S1lverface:

Can anyone help. I'm new to the vba stuff..

I want to move all the e-mails from my Inbox to a folder with the same

name
as the sender. I want my program to check if a folder exists for that

sender,
if not create it, and move the message to that specific folder.

Could anybody give me some hints how to do this.


  #5  
Old December 6th 07, 06:01 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Create folder based on senders name in the Inbox



#1: Did you look at the sample I mentioned? Simply set the value for the
Find variable, e.g. "

#2: Sorry, off head I don't know for sure how to determine the first
recipient in that case. You might look at the ConversationIndex and SentOn
properties.

--
Best regards
Michael Bauer - MVP Outlook
Synchronize Outlook Categories:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Wed, 5 Dec 2007 03:10:01 -0800 schrieb S1lverface:

Thanks Michael.

I'm wondering a couple of things when moving mail from my 'Inbox' to
folders. If you could help, that would be great :

1- If i receive mail from several people who all work for the same company

-
Instead of using the [SenderName] = ' ', can I put a

wild
card type thing to pick up the mail from all senders whose extension is
@mydomain.com or can I write [SenderName] = '
',
[SenderName] = '
', [SenderName] = '
' etc

2- I also use similar code to move from my 'Sent Items' to my sent
subfolders, However, if the mail i sent had several recipients, these

e-mails
are left behind. Can I write code so as it knows to move those e-mails to

the
subfolder of the first recipient in the list.

"Michael Bauer [MVP - Outlook]" wrote:



Please look three days back in this ng: "Move and create folder based on
subject". Instead of Subject read the SenderEMailAddress proeprty.

--
Best regards
Michael Bauer - MVP Outlook
Synchronize Color Categories & Ensure that Every Item Gets Categorized:

http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Wed, 28 Nov 2007 09:07:04 -0800 schrieb S1lverface:

Can anyone help. I'm new to the vba stuff..

I want to move all the e-mails from my Inbox to a folder with the same

name
as the sender. I want my program to check if a folder exists for that

sender,
if not create it, and move the message to that specific folder.

Could anybody give me some hints how to do this.


 




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
Move and create folder based on subject Peter R. Outlook and VBA 3 December 5th 07 05:46 AM
Mail rule based on "safe senders"? Swifty Outlook - General Queries 1 May 6th 07 11:20 AM
Create a new folder in PST/OST which behaves like special folder(e.g Inbox/RSS feeds) [email protected] Add-ins for Outlook 3 April 17th 07 02:28 PM
script to create a folder in "INBOX" Amin Outlook - Using Forms 5 April 6th 07 01:26 PM
I lost the names of the senders in my Inbox shughenry Outlook - General Queries 1 January 31st 06 06:11 PM


All times are GMT +1. The time now is 10:58 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.