Need help in coding outlook

G

Gunawan

Hi,
For Each oMailItem In oInbox.Items
Debug.Print oMailItem.SenderName
Next

The above codes are part of my code.
The issue is when the inbox item is not mail item the code will be error.
When the inbox item is a report item (delivery failure notification) the
code will be error.

How to fixed that?

Regards,
Gunawan
 
Top