Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Read emails from MS Outlook 2003

Reply
 
Old 05-02-2009   #1 (permalink)
vb help


 
 

Read emails from MS Outlook 2003

I use:

Dim oNS As NameSpace
Dim oFolder As MAPIFolder
Dim objMsg As MailItem

Set oNS = GetNamespace("MAPI")
Set oFolder = oNS.GetDefaultFolder(olFolderInbox)

For Each objMsg In oFolder.Items

I read the emails from the Inbox folder as you can see from the code but
need a way to ensure they are read in date order from oldest to newest.

Can this be done?


My System SpecsSystem Spec
Old 05-02-2009   #2 (permalink)
Al Dunbar


 
 

Re: Read emails from MS Outlook 2003


"vb help" <vbhelp@xxxxxx> wrote in message
news:FECB8D11-9220-4E78-BF62-A7AAFA1D1462@xxxxxx
Quote:

>I use:
>
> Dim oNS As NameSpace
> Dim oFolder As MAPIFolder
> Dim objMsg As MailItem
>
> Set oNS = GetNamespace("MAPI")
> Set oFolder = oNS.GetDefaultFolder(olFolderInbox)
>
> For Each objMsg In oFolder.Items
>
> I read the emails from the Inbox folder as you can see from the code but
> need a way to ensure they are read in date order from oldest to newest.
>
> Can this be done?
Probably. But how do you want to do it, with vbscript, after which this
newsgroup is named, or vb as in the code you posted above. If the latter,
I'd suggest you look for a vb newsgroup.

/Al


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Help with importing emails from Outlook 2003. Live Mail
Having troubles with Vista and Outlook 2003 receiving emails. Vista General
transfer emails from Outlook 2003 to Outlook 2007 on new computer Vista General
Outlook Web Access emails can be read but not replied to Vista mail
Outlook 2003, Vista Ultimate - Recieving Emails Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46