GEt Folder IF

D

d.gallone

Hello,

I'm writing a Windows service in VB .NET that is looking for all
messages from a specified folder (Outlook 2002). I've only the name of
that folder. How can I find the folder ID ?

In VB6 I 've done like this but I can't use the same code in the
windows service (because outlook model is unsuitable to run in a
Windows Service):
Dim nsMAPI As Outlook.NameSpace
Dim MyListFolder As MAPIFolder
for i = 1 to nsMAPI.Folders.Count
Set MyListFolder = nsMAPI.Folders(i)
if MyListFolder.Folders.Item(i).Name = "test" then
....
end if
next

Thanks for your help,
David GALLONE
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top