Ok, thanks I'll check out those sites and got the code working. But how do
I reference the top of the folder tree? In my case I have multiple email
accounts configured. One of which is an IMAP attachment to an account. All
the examples I've seen so far assume you want to work out of the default
Inbox.
Thanks Again!
Linn
"Michael Bauer" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Linn,
>
> good sites for starting:
> www.outlookcode.com.
> www.slipstick.com
>
> List the folders of your Inbox from within OL-VBA:
>
> dim oFld as Outlook.Mapifolder
> dim Inbox as Outlook.Mapifolder
>
> set Inbox=Application.Session.GetDefaultFolder(onFolderInbox)
> for each ofld in Inbox.Folders
> Debug.Print oFld.name
> next
>
>
> --
> Viele Grüße
> Michael Bauer
>
>
> "Linn Kubler" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi,
> >
> > Is there a way to list the folders in my mail box using VBA? Anyone
> know of
> > any good sites with examples for simple tasks like this or an online
> (read
> > free) tutorial on how to program Outlook with VBA? BTW, I'm using
> Outlook
> > 2002 if that makes a difference.
> >
> > Thanks in advance,
> > Linn
> >
> >
>