S
steve
Hello, I get an error with this code:
Private Sub Command1_Click()
MAIN
End Sub
Sub MAIN()
Dim CDO_Ses
Dim fld
Dim msg
Dim a
Set CDO_Ses = CreateObject("Mapi.Session")
CDO_Ses.LOGON "", "", False, True, 0, True
Set fld = CDO_Ses.getDefaultFolder(1)
For Each msg In fld.messages
Set a = msg.sender
Debug.Print a.address
Next
End Sub
I am only using Outlook 2000 to get my internet mail from my ISP. It
gets a few of the addresses from the message senders in my inbox then it
exits the sub and crashes VB. It also fails when I tried it in VB
Script. Is this a bug with CDO or is it 'not supported"? Any ideas on
ways to work around this problem? I am trying to get the email address
information from my inbox.
Thanks, any help appreciated as I am new to CDO.
Steve
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Private Sub Command1_Click()
MAIN
End Sub
Sub MAIN()
Dim CDO_Ses
Dim fld
Dim msg
Dim a
Set CDO_Ses = CreateObject("Mapi.Session")
CDO_Ses.LOGON "", "", False, True, 0, True
Set fld = CDO_Ses.getDefaultFolder(1)
For Each msg In fld.messages
Set a = msg.sender
Debug.Print a.address
Next
End Sub
I am only using Outlook 2000 to get my internet mail from my ISP. It
gets a few of the addresses from the message senders in my inbox then it
exits the sub and crashes VB. It also fails when I tried it in VB
Script. Is this a bug with CDO or is it 'not supported"? Any ideas on
ways to work around this problem? I am trying to get the email address
information from my inbox.
Thanks, any help appreciated as I am new to CDO.
Steve
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!