I am trying to write a some simple Visual Basic code (in Outlook 2000) to enable me to save the attachments within my emails using sequential names. However, I get stuck right away because I don't know how to refer to the active object (MailItem).
Here's what I mean. In VBA for Excel I would edit a cell in the active worksheet by typing:
However, if I want to do something within the active MailItem (i.e. the email which is open) then how do I refer to it (what is the equivalent to the ActiveSheet part)?Code:ActiveSheet.Range("A1:A4") = MyRange
Thanks


Reply With Quote