A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Command Button



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 23rd 07, 10:02 PM posted to microsoft.public.outlook.program_forms
Daniel Vargas
external usenet poster
 
Posts: 1
Default Command Button

How can add a sub to my command button??
Ads
  #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??

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending message via command button Gil Outlook and VBA 3 May 2nd 07 08:31 PM
command button and multipage snwooz Outlook - Using Forms 1 November 1st 06 08:26 PM
Command Button on Read Page [email protected] Outlook - Using Forms 2 October 19th 06 07:10 PM
Command Button on Read Page [email protected] Outlook - Using Forms 2 October 18th 06 09:05 PM
Command bar button FaceID Icon donald Add-ins for Outlook 20 February 9th 06 07:42 PM


All times are GMT +1. The time now is 10:17 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.