PC Review


Reply
Thread Tools Rate Thread

Listing Folders?

 
 
Linn Kubler
Guest
Posts: n/a
 
      6th Nov 2004
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


 
Reply With Quote
 
 
 
 
Michael Bauer
Guest
Posts: n/a
 
      7th Nov 2004
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
>
>


 
Reply With Quote
 
=?Utf-8?B?U0RlY291?=
Guest
Posts: n/a
 
      7th Nov 2004
Do you know where I can find some code for accessing my shared folders? code
below will only display my contact folder not the contact folders that
someone is sharing with me.

I have looked everywhere and cannot find any documentation on how to do
this.

Thanks

"Michael Bauer" wrote:

> 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
> >
> >

>
>

 
Reply With Quote
 
Michael Bauer
Guest
Posts: n/a
 
      7th Nov 2004
The function is called GetSharedDefaultFolder, also available via the
NameSpace object.

--
Viele Grüße
Michael Bauer


"SDecou" <(E-Mail Removed)> wrote in message
newsE169BFD-1288-4D45-9BCB-(E-Mail Removed)...
> Do you know where I can find some code for accessing my shared

folders? code
> below will only display my contact folder not the contact folders that
> someone is sharing with me.
>
> I have looked everywhere and cannot find any documentation on how to

do
> this.
>
> Thanks


 
Reply With Quote
 
=?Utf-8?B?U0RlY291?=
Guest
Posts: n/a
 
      8th Nov 2004
How do I get a listing of all the Mailboxes that are being shared with me?
Meaning, in code I want to grab the username of all the shared Mailboxes (I
could have 3 or 4) and then display this listing to the user to allow them to
pick from. Is this possible?

"Michael Bauer" wrote:

> The function is called GetSharedDefaultFolder, also available via the
> NameSpace object.
>
> --
> Viele Grüße
> Michael Bauer
>
>
> "SDecou" <(E-Mail Removed)> wrote in message
> newsE169BFD-1288-4D45-9BCB-(E-Mail Removed)...
> > Do you know where I can find some code for accessing my shared

> folders? code
> > below will only display my contact folder not the contact folders that
> > someone is sharing with me.
> >
> > I have looked everywhere and cannot find any documentation on how to

> do
> > this.
> >
> > Thanks

>
>

 
Reply With Quote
 
Michael Bauer
Guest
Posts: n/a
 
      9th Nov 2004
I don´t have Exchange installed. I suppose all folders that are not
below your personal folder are the shared folders?

--
Viele Grüße
Michael Bauer


"SDecou" <(E-Mail Removed)> wrote in message
news:6717D963-7DD0-4C69-AEDE-(E-Mail Removed)...
> How do I get a listing of all the Mailboxes that are being shared with

me?
> Meaning, in code I want to grab the username of all the shared

Mailboxes (I
> could have 3 or 4) and then display this listing to the user to allow

them to
> pick from. Is this possible?
>
> "Michael Bauer" wrote:
>
> > The function is called GetSharedDefaultFolder, also available via

the
> > NameSpace object.
> >
> > --
> > Viele Grüße
> > Michael Bauer
> >
> >
> > "SDecou" <(E-Mail Removed)> wrote in message
> > newsE169BFD-1288-4D45-9BCB-(E-Mail Removed)...
> > > Do you know where I can find some code for accessing my shared

> > folders? code
> > > below will only display my contact folder not the contact folders

that
> > > someone is sharing with me.
> > >
> > > I have looked everywhere and cannot find any documentation on how

to
> > do
> > > this.
> > >
> > > Thanks

> >
> >


 
Reply With Quote
 
Linn Kubler
Guest
Posts: n/a
 
      9th Nov 2004
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
> >
> >

>



 
Reply With Quote
 
Michael Bauer
Guest
Posts: n/a
 
      10th Nov 2004
Hi Linn,

the top folders are available via Application.Session.Folders. You can
loop through the hierarchie or use Sue´s GetFolder function:
http://www.outlookcode.com/d/code/getfolder.htm

--
Viele Grüße
Michael Bauer


"Linn Kubler" <(E-Mail Removed)> wrote in message
news:ur#(E-Mail Removed)...
> 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
> > >
> > >

> >

>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing all folders warren.vanduesbury@vanco.co.uk Microsoft Outlook 4 12th Dec 2006 12:59 PM
Need help listing another users folders =?Utf-8?B?Um9n?= Microsoft Outlook VBA Programming 1 19th Jul 2006 11:21 PM
Listing folders =?Utf-8?B?RFZT?= Windows XP General 3 18th Jun 2005 06:57 PM
Listing Files and Folders Xarky Microsoft C# .NET 2 29th Oct 2004 01:05 PM
Listing folders Noel Christie Windows XP Basics 4 11th Jan 2004 09:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:25 PM.