user froms command

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » User Froms / command button - on click

User Froms / command button - on click

resolvedResolved · Medium Priority · Version 2003

Richard has attended:
Excel VBA Intro Intermediate course

User Froms / command button - on click

Hi there,

im trying to put a button - command button i think, on a worksheet, actually on the worksheet, not in the tool bars. I can create the button, but I dont know how to get this button to appear on the worksheet. This area was covered on the course, but I just cant remember how to do it - sorry.

I then want this button, if clicked upon to run a procedure already created, I think this part is just done by setting it up so that on 'click' the button calls the necessay procedure.

I know this is probably not complicated - I remember it being an easy part of the course, so im a bit embarassed about asking! Hope the above is clear - please let me know if you need any further information.

Thanks again for your help.

RE: User Froms / command button - on click

Hi Richard

Thank you for your question

If you click on VIEW-TOOLBARS and select the control toolbox. Then click on the command button icon and draw it on the worksheet.
Finally, click on the view code button on the control toolbox (3rd button from the top). This creates an on click procedure for the button. Simply type the appropriate call procedure at this point

Hope this helps.

Regards

Stephen

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Create your own custom list on Excel 2010!

If you know how to use the auto-fill option on Excel then why not create your own customs lists?

The auto fill feature saves you time by allowing you to enter one of the list entries into a cell and then use your mouse to automatically drag the rest of the list into the cells below, above or to either side of the initial cell. When using your mouse to perform this task you will see a thin black cross appear at the bottom right hand side of the cell. Click, hold and drag to make the list appear.

Default lists include weekdays and months. To create your own list in Excel 2010 do the following;

>File
>Options
>Advanced
>Scroll right to the bottom of the page and you will see a buttom "edit custom lists", click this button
>enter your list in the list entries
>click add

Now try it out. Good luck.
>

View all Excel hints and tips


Server loaded in 0.08 secs.