PC Review


Reply
Thread Tools Rate Thread

How do I make a commandbutton in Excel 'launch' a custom form?

 
 
=?Utf-8?B?Y2hvcmlzbW9z?=
Guest
Posts: n/a
 
      12th Oct 2006
I have created a customised form in Excel and want the command button in the
spreadsheet to 'launch' or 'activate' the customised form so that the user
can input data and perform a calculation on the form.
I cannot find anything describing how to do this; eg it seems that you need
to input a 'Private Sub CommandButton1_Click()' routine and set a condition
eg 'If CommandButton1.Caption = "OK" Then' but how do you reference or link
the click event to the userform. Do you use an 'activate' type command? How
do you reference the userform? Been looking everywhere for this simple thing.
Grateful for help.
 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      12th Oct 2006
Userform1.Show

See also this page
http://support.microsoft.com/default...b;EN-US;829070



--
Regards Ron de Bruin
http://www.rondebruin.nl



"chorismos" <(E-Mail Removed)> wrote in message news:0EC7332A-5B71-42F5-9961-(E-Mail Removed)...
>I have created a customised form in Excel and want the command button in the
> spreadsheet to 'launch' or 'activate' the customised form so that the user
> can input data and perform a calculation on the form.
> I cannot find anything describing how to do this; eg it seems that you need
> to input a 'Private Sub CommandButton1_Click()' routine and set a condition
> eg 'If CommandButton1.Caption = "OK" Then' but how do you reference or link
> the click event to the userform. Do you use an 'activate' type command? How
> do you reference the userform? Been looking everywhere for this simple thing.
> Grateful for help.



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      12th Oct 2006
Get a button from the forms toolbar, and when you drag it onto the
worksheet, you will immediately be prompted to assign a macro.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"chorismos" <(E-Mail Removed)> wrote in message
news:0EC7332A-5B71-42F5-9961-(E-Mail Removed)...
> I have created a customised form in Excel and want the command button in

the
> spreadsheet to 'launch' or 'activate' the customised form so that the user
> can input data and perform a calculation on the form.
> I cannot find anything describing how to do this; eg it seems that you

need
> to input a 'Private Sub CommandButton1_Click()' routine and set a

condition
> eg 'If CommandButton1.Caption = "OK" Then' but how do you reference or

link
> the click event to the userform. Do you use an 'activate' type command?

How
> do you reference the userform? Been looking everywhere for this simple

thing.
> Grateful for help.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom shortcutmenu for commandbutton to open form with arguments xcskiier Microsoft Access Form Coding 0 5th Jan 2010 03:46 AM
How do I link a macro to a CommandButton in a custom form, want us =?Utf-8?B?Q3lib3JkZWxpYw==?= Microsoft Outlook Form Programming 11 5th Feb 2006 12:15 AM
How can I make a custom button in one Excel form to e-mail easily. =?Utf-8?B?S2F0eWRpZA==?= Microsoft Excel Programming 2 3rd Feb 2005 06:45 PM
How to programatically launch new custom form? Rob S Microsoft Outlook Program Addins 1 28th Apr 2004 05:41 PM
2nd post - launch custom form Newbie Microsoft Outlook Form Programming 1 4th Aug 2003 05:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:44 AM.