Recent content by rattanjits

  1. R

    How to capture a Mailitem Event

    Thank you Ken. I am able to capture inspector and mailitem events now. However I cannot get the mailitem.propertychange event to work. Keep getting a compile error "Procedure declaration does not match description of event or procedure having the same name" Have tried various declarations...
  2. R

    Email Categories: NO SHOW to sendee, SHOW in Sent folder? Prev. WR

    Save this script in ThisOutlookSession Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) Dim myNameSpace As Outlook.NameSpace Dim myInbox As Outlook.Folder Dim myItem As Object Dim strEntryID As String Dim strCategories As String 'Save and...
  3. R

    Date Stamp in SUBJECT BOX of Outgoing/Incoming Mail

    To stamp outgoing mails, save this script in ThisOutlookSession Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) If TypeName(Item) = MailItem Then Dim strSubject As String strSubject = Item.Subject Item.Subject = strSubject & " " &...
  4. R

    How to capture a Mailitem Event

    The Outlook developer reference for MailItem.Close event includes the following example to save an item without prompting the user: Public WithEvents myItem As Outlook.MailItem Public Sub Initalize_Handler() Set myItem = Application.ActiveInspector.CurrentItem End Sub...
Top