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

user froms command

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

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

Shortcut for deleting all comments in a spreadsheet

If you have entered multiple comments into a spreadsheet and wish to delete them all at once, you can achieve this by:

1. Holding down Ctrl, then Shift, then O - this will select all cells containing comments in the worksheet you are looking at.

2. Right-clicking on one of the selected cells, and selecting Delete Comment from the menu that appears.

3. Clicking anywhere else in the spreadsheet to deselect comments - all comments should have disappeared from the spreadsheet.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.