Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding an email in outlook
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00284176
Message ID:
00284251
Views:
14
For the Inbox you need:
oFolder = oNameSpace.GetDefaultFolder(6)

Iterate through the GetDefaultFolder from 3 to 16 to reference all Outlook folders.

>oOutlook = CREATEOBJECT("Outlook.Application")
>oNameSpace = oOutlook.GetNameSpace("MAPI")
>oFolder = oNameSpace.Folders(1)
>
>For some reason, this does not work:
>oFolder = oNameSpace.Folders("Inbox")
>
George
Previous
Reply
Map
View

Click here to load this message in the networking platform