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_sampl...spectorWrapper).
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
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
> I'm not sure i understand. is there a way to just automatically insert
> 'hello' when you reply to a message?
> Thanks,
> Chieko
>
> "Michael Bauer" wrote:
>
>> 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).
>>
>> --
>> Viele Gruesse / Best regards
>> Michael Bauer - MVP Outlook
>>
>>> 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>
>>