Outlook VBA

Huix
05-30-2001, 10:17 PM
I recently tryign to play with Outlook VBA (visual basic application) coz I found out that it is quite interesting. But I am a newbies in this thing. Anyone can advise on this?


In VBA ThisOutlookSession, I have added 2 lines to show a form that I customized it. For example,

Application_ItemSend(ByVal Item as Object, Cancel as Boolean)

Load frmForm1
frmForm1.Show

End Sub


The Item is the object that holds the information of this current email item, i.e., Item.Body is the text body of the new mail that you are going to send.


The problem is, when inside the customized form, If I want to manipulate the Item's data, how do I manipulated it? For example, I need to add a date in the last line of the text body, i.e., Item.Body & Date. hehehe The Item cannot be recornized coz no such Object. Oh ya, how to I declare that Item oject into that form since the Application_ItemSend is a Subroutine and don't the class name.

Did I do the correct way? or Outlook has another way to do it? Hehehe anyone can help?

Besides that, if I want to stop the Application_itemsend(), how do I stop that? I tried to put an End statement before the End Sub. The message was still sent.


Thks

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum