P
Phil
I am using Outlook 2002 (xp) on a Windows 2000 Pro SP 4 platform. This
Outlook 2002 installation is part of a semi-automated mailing list system
that I have put together. There is some VBA running with Outlook, and I
have recently run into a situation that causes my VBA code to fail.
Basically, my VBA cycles through the Inbox every time Outlook automatically
fetches new mail off the POP server. The VBA exports the contents of each
message to a TXT file, and then deletes the mail item from the Inbox. It
has worked very well for months. But just recently the code has run into a
situation that I'm seeking a solution for. Someone on my mailing list is
sending me an automated reply while he is on vacation, but instead of his
reply appearing in my Inbox as a message item, it appears as a NOTE!
Yes...as a Microsoft Outlook yellow sticky note! I don't know how he pulls
this trick off, but it causes my VBA code to ignore everything in my Inbox.
Here are the key parts of my VBA code:
Dim myItem As MailItem
Set myFolder = GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)
For Each myItem In myFolder.Items
.....
Next
What is happening is that when the execution point hits the For EAch
statement, it trips an error/exception and hence never gets inside the loop.
I suspect the fact that this "note" that is in my Inbox is not considered to
be of "MailItem" type, and hence trips the error.
How do I resolve this problem?
A less important question is, how is this guy pulling this off...i.e., how
can he send me a NOTE as an email?
Thanks.
Outlook 2002 installation is part of a semi-automated mailing list system
that I have put together. There is some VBA running with Outlook, and I
have recently run into a situation that causes my VBA code to fail.
Basically, my VBA cycles through the Inbox every time Outlook automatically
fetches new mail off the POP server. The VBA exports the contents of each
message to a TXT file, and then deletes the mail item from the Inbox. It
has worked very well for months. But just recently the code has run into a
situation that I'm seeking a solution for. Someone on my mailing list is
sending me an automated reply while he is on vacation, but instead of his
reply appearing in my Inbox as a message item, it appears as a NOTE!
Yes...as a Microsoft Outlook yellow sticky note! I don't know how he pulls
this trick off, but it causes my VBA code to ignore everything in my Inbox.
Here are the key parts of my VBA code:
Dim myItem As MailItem
Set myFolder = GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)
For Each myItem In myFolder.Items
.....
Next
What is happening is that when the execution point hits the For EAch
statement, it trips an error/exception and hence never gets inside the loop.
I suspect the fact that this "note" that is in my Inbox is not considered to
be of "MailItem" type, and hence trips the error.
How do I resolve this problem?
A less important question is, how is this guy pulling this off...i.e., how
can he send me a NOTE as an email?
Thanks.