Thread: Command Button
View Single Post
  #2  
Old May 23rd 07, 10:35 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Command Button

In form design mode, click the View Code button and type:

Sub CommandButton1_Click()
MsgBox "put your code here"
End Sub

--
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

"Daniel Vargas" wrote in message ...
How can add a sub to my command button??

Ads