View Single Post
  #2  
Old December 5th 07, 06:08 PM posted to microsoft.public.outlook.program_vba
S1lverface
external usenet poster
 
Posts: 8
Default Create Folders based on domain name

Thanks for that.
I need the vba to determine the folder names for me, based on the e-mail
addresses it finds in my inbox, and then create the folders... ? I do not
want to have to manually go through my e-mails myself and decide what folders
are needed

thanks again

"Dmitry Streblechenko" wrote:

set Inbox = Application.Session.(olFolderInbox)
set NewSubFolder = Inbox.Folders.Add("Your new folder name")

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"S1lverface" wrote in message
...

I wand to run though my full inbox and create a subfolder for each of the
domain names therein, but leaving off the extension (.com, .org, .co.uk
etc).

For example, my inbox has 100 e-mails from a total of 25 different company
domain names, e.r 10 from , 11 from , 5
from


I therefore wand a folder called: Walker, Spaceage and Franksome

Thanks again




Ads