button on toolbar

G

Guest

If I have created a form in outlook using the design form and it is stored in
the Personal Forms Library, is there a way I can add a button to the toolbar,
so when I click on it, the form will populate in my message area. Thanks
 
S

Sue Mosher [MVP-Outlook]

A button on the form would be more appropriate:

Sub COmmandButton1_Click()
Item.Body = "my text"
End Sub

See http://www.outlookcode.com/d/propsyntax.htm if you need a primer on property and control syntax.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

I do not know how that would help putting the button on the form. If the
form is created and store in the Personal Forms Library, I want the button to
open the form. How would creating it on the form work? Thanks,
 
S

Sue Mosher [MVP-Outlook]

That's a different scenario from what you first described, which I interpreted as a button to populate the form's message area.

To create a button to launch a custom form, see http://www.outlookcode.com/d/launchform.htm

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top