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

Outlook 2003 Script How to get a List of SubFolder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 9th 07, 03:39 PM posted to microsoft.public.outlook.program_vba
bbnimda
external usenet poster
 
Posts: 94
Default Outlook 2003 Script How to get a List of SubFolder

Hi all,

How can I obtain à list of subfolder (contact) in Outlook Public Folder eg:
Business

Business
|__ Customer
|__ Provider
|__ Reseler
Private
|__Family
|__Frends


Thks
--
http://bensoft.miniville.fr/


  #2  
Old November 9th 07, 03:40 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook 2003 Script How to get a List of SubFolder

Each folder has a Folders collection containing its subfolders

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"bbnimda" wrote in message ...
Hi all,

How can I obtain à list of subfolder (contact) in Outlook Public Folder eg:
Business

Business
|__ Customer
|__ Provider
|__ Reseler
Private
|__Family
|__Frends


Thks
--
http://bensoft.miniville.fr/


  #3  
Old November 9th 07, 03:51 PM posted to microsoft.public.outlook.program_vba
bbnimda
external usenet poster
 
Posts: 94
Default Outlook 2003 Script How to get a List of SubFolder

I didn't found the right function to use in my Form, can U help me

Thks


"Sue Mosher [MVP-Outlook]" a écrit dans le message
de news: ...
Each folder has a Folders collection containing its subfolders

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"bbnimda" wrote in message
...
Hi all,

How can I obtain à list of subfolder (contact) in Outlook Public Folder
eg:
Business

Business
|__ Customer
|__ Provider
|__ Reseler
Private
|__Family
|__Frends


Thks
--
http://bensoft.miniville.fr/




  #4  
Old November 9th 07, 04:29 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook 2003 Script How to get a List of SubFolder

Again, you need to start with the first folder you're interested in, and work with its Folders collection:

strList = ""
For Each objFolder in myFolder.Folders
strList = strList & objFolder.Name & vbCrLf
Next
MsgBox strList

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"bbnimda" wrote in message ...
I didn't found the right function to use in my Form, can U help me

Thks


"Sue Mosher [MVP-Outlook]" a écrit dans le message
de news: ...
Each folder has a Folders collection containing its subfolders

"bbnimda" wrote in message
...
Hi all,

How can I obtain à list of subfolder (contact) in Outlook Public Folder
eg:
Business

Business
|__ Customer
|__ Provider
|__ Reseler
Private
|__Family
|__Frends


Thks
--
http://bensoft.miniville.fr/




  #5  
Old November 12th 07, 03:45 PM posted to microsoft.public.outlook.program_vba
bbnimda
external usenet poster
 
Posts: 94
Default Outlook 2003 Script How to get a List of SubFolder

Tks Sue,

I'll try this immediatly

@+

"Sue Mosher [MVP-Outlook]" a écrit dans le message
de news: ...
Again, you need to start with the first folder you're interested in, and
work with its Folders collection:

strList = ""
For Each objFolder in myFolder.Folders
strList = strList & objFolder.Name & vbCrLf
Next
MsgBox strList

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"bbnimda" wrote in message
...
I didn't found the right function to use in my Form, can U help me

Thks


"Sue Mosher [MVP-Outlook]" a écrit dans le
message
de news: ...
Each folder has a Folders collection containing its subfolders

"bbnimda" wrote in message
...
Hi all,

How can I obtain à list of subfolder (contact) in Outlook Public Folder
eg:
Business

Business
|__ Customer
|__ Provider
|__ Reseler
Private
|__Family
|__Frends


Thks
--
http://bensoft.miniville.fr/






  #6  
Old November 13th 07, 09:13 AM posted to microsoft.public.outlook.program_vba
bbnimda
external usenet poster
 
Posts: 94
Default Outlook 2003 Script How to get a List of SubFolder

It work's fine

I've an other request for U, In my form I use a combo where I list all
contact in a target folder, but i did'nt find the way to fill my combo with
the list of contact Sorted in alphabetical order here is my function can U
help me Thks in advance

Set RepFdv = Application.GetNamespace("MAPI").Folders("publics
folders").Folders("all publics
folders").Folders("ContactAB").Folders("target")
totalFdv=RepFdv.items.count
Set FormPage = Item.GetInspector.ModifiedFormPages("Pr1")
Set Control = FormPage.Controls("ListUser")
Control.clear
MyIndex=0
NbrI=0
switch=0
do while monindex totalFdv
MyIndex=MyIndex+1
Set myItem = RepFdv.Items(MonIndex)
Control.addItem myItem.fullname
loop






"bbnimda" a écrit dans le message de news:
...
Tks Sue,

I'll try this immediatly

@+

"Sue Mosher [MVP-Outlook]" a écrit dans le
message de news: ...
Again, you need to start with the first folder you're interested in, and
work with its Folders collection:

strList = ""
For Each objFolder in myFolder.Folders
strList = strList & objFolder.Name & vbCrLf
Next
MsgBox strList

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"bbnimda" wrote in message
...
I didn't found the right function to use in my Form, can U help me

Thks


"Sue Mosher [MVP-Outlook]" a écrit dans le
message
de news: ...
Each folder has a Folders collection containing its subfolders

"bbnimda" wrote in message
...
Hi all,

How can I obtain à list of subfolder (contact) in Outlook Public Folder
eg:
Business

Business
|__ Customer
|__ Provider
|__ Reseler
Private
|__Family
|__Frends


Thks
--
http://bensoft.miniville.fr/








 




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
need a script to delete contact list in Outlook 2003 JohnW Outlook - Using Contacts 2 July 24th 07 01:40 PM
Outlook 2002 won't create a new subfolder in the Folder List. larlyles Outlook - Installation 0 July 2nd 07 02:48 AM
Outlook 2003 - Deleted Subfolder comes back [email protected] Outlook - General Queries 2 April 14th 07 11:44 PM
Outlook 2k3 Script: Pb extracting list of items news.microsoft.com Outlook and VBA 4 November 7th 06 07:42 AM
list mails sorted on date, independent of subfolder structure of INBOX Osiris Outlook - General Queries 4 July 15th 06 10:47 PM


All times are GMT +1. The time now is 08:13 AM.


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.