Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: VBA: OUTLOOK 2010 Prefix Subject [Secure]  (Read 3399 times)

0 Members and 1 Guest are viewing this topic.

nothlit

    Topic Starter


    Intermediate

    Thanked: 2
    VBA: OUTLOOK 2010 Prefix Subject [Secure]
    « on: September 03, 2010, 01:27:38 PM »
    Code: [Select]
    Sub HelloWorldMessage()
        Dim msg As Outlook.MailItem
        Set msg = Application.CreateItem(olMailItem)
        msg.Subject = "Hello World!"
        msg.Display
        Set msg = Nothing
    End Sub

    So far the best example online I have been able to find is the above one. What I want though is on the currently open email message add [Secure] into the subject. This would be email replies or forwards more then anything ... the above is only for new emails. I have searched for the right VBA trigger but am not finding anything.