I have a button on a custom email form that I designed. When that button is
clicked, it opens a new instance of that email form. What I want it to also
do is to populate the "To:" field automatically. Any ideas?
Function Item_CustomAction(ByVal Action, ByVal NewItem)
If Action.Name = "Name of your action" Then
NewItem.To = "name@domain.dom"
NewItem.Display
End If
End Function

Signature
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
>I have a button on a custom email form that I designed. When that button is
> clicked, it opens a new instance of that email form. What I want it to also
> do is to populate the "To:" field automatically. Any ideas?