Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Generic Command Button Response

Is there a way to set a command buttons response.
what i am trying to do is to use 1 user form and have generic responses from
the command buttons on that form so that it can be used for multiple things
can it be set
example
if command button is pressed name "what"
its resp to "1" or "what"
like msgbox vbyesno except customized
and is it put into that command buttons code


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Generic Command Button Response

Each commandbutton has its own click event that fires when it is pressed.

There are methods to link several commandbuttons to a single event. Such a
method is documented at John Walkenbach's site:

http://j-walk.com/ss/excel/tips/tip44.htm
Handle Multiple UserForm Buttons With One Subroutine

--
Regards,
Tom Ogilvy


"David W" wrote in message
...
Is there a way to set a command buttons response.
what i am trying to do is to use 1 user form and have generic responses

from
the command buttons on that form so that it can be used for multiple

things
can it be set
example
if command button is pressed name "what"
its resp to "1" or "what"
like msgbox vbyesno except customized
and is it put into that command buttons code




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
delayed response to any command mc New Users to Excel 5 January 29th 10 05:32 AM
command button add another command Wanna Learn Excel Discussion (Misc queries) 5 December 7th 08 11:42 PM
How do I transform a word response to a numeric response? kanegaro Excel Discussion (Misc queries) 0 January 11th 08 05:08 PM
How do I set up a daily call out response response register? Pule Excel Worksheet Functions 1 October 7th 07 01:34 PM
Command Button Steved Excel Worksheet Functions 2 February 19th 06 11:01 PM


All times are GMT +1. The time now is 11:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"