automatically enter salutation.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to program out look to print the recipients name in the text of
the message...I'm really lazy.
So, when I respond to someone I'd like their name to be included in the text
like:

Mike,
<my message begins here>
 
Am Tue, 1 Nov 2005 12:32:03 -0800 schrieb chieko:

Mike, the problem is to get the point when the recipient is entered. You
could use the PropertyChange event but for that you´d have to save the mail
after entering the recipient. That in turn would require more work to cancel
an e-mail (you´d have to delete the draft manually).
 
I'm not sure i understand. is there a way to just automatically insert
'hello' when you reply to a message?
Thanks,
Chieko
 
Am Thu, 3 Nov 2005 12:50:14 -0800 schrieb chieko:


It´s possible. The MailItem object provides you with an Reply event. For
being able to track every MailItem that could be replied to you need an
Explorer wrapper (http://www.microeye.com/resources/itemsCB.htm) and an
Inspector wrapper
(http://www.slovaktech.com/code_samples.htm#InspectorWrapper).

Once you have set up that you can catch the Reply button event. Here´s a
sample of how to get a reference on the Reply button for an opened
Inspector:

' Storing the button ref in this member enables you to receive its events.
Private WithEvents ReplyButton As Office.CommandBarButton

Private Sub SampleHowToGetTheRef()
Set ReplyButton = Application.ActiveInspector.CommandBars.FindControl(,
354)
End Sub

Private Sub ReplyButton_Click(ByVal Ctrl As Office.CommandBarButton,
CancelDefault As Boolean)
' This event fires if the button is clicked
End Sub
 
Back
Top