Need help using VB in Outlook

Sharky Forums


Results 1 to 2 of 2

Thread: Need help using VB in Outlook

  1. #1
    Hammerhead Shark
    Join Date
    Aug 2001
    Posts
    2,240

    Need help using VB in Outlook

    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:
    Code:
    ActiveSheet.Range("A1:A4") = MyRange
    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)?

    Thanks
    | AMD64 3000+ (skt 754)| 256MB Sapphire Radeon 9600XT | MSI K8N Neo Platinum | 450W Antec SP-450PGB PSU |Corsair 1024MB CMX1024-3200C2PT + TwinMOS PC3200 512MB CL2.5 | 80GB WD SE HDD (8MB Cache) | 180GB IBM/Hitachi 180GXP HDD | NEC 2500A DVR+-RW | Creative FPS1000 Speakers |

  2. #2
    Hammerhead Shark
    Join Date
    Aug 2001
    Posts
    2,240
    Anyone?

    Maybe someone can refer me to a good website.

    Thanks
    | AMD64 3000+ (skt 754)| 256MB Sapphire Radeon 9600XT | MSI K8N Neo Platinum | 450W Antec SP-450PGB PSU |Corsair 1024MB CMX1024-3200C2PT + TwinMOS PC3200 512MB CL2.5 | 80GB WD SE HDD (8MB Cache) | 180GB IBM/Hitachi 180GXP HDD | NEC 2500A DVR+-RW | Creative FPS1000 Speakers |

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •