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

macros

ResolvedVersion 2003

Steven has attended:
Excel Advanced course
PowerPoint Intermediate Advanced course

Macros

How do you control your macro with a "button" (i.e. not through F8)? I had to leave the course at this point briefly. Many thanks

RE: Macros

Hi Steven

Thanks for your question. You can add a macro button to a toolbar in Excel by going to View > Toolbars > Customise and clicking on the Commands tab in the dialogue box that appears.

Scroll down the list of categories until you find the Macros entry and select it. On the right of the dialogue box you will see a smiley face button.

Left click on the button and drag the icon to one of your toolbars.

(leave the dialogue box open)


Once in position you can right click on the button and change the picture by choosing Change Button Image

Right click and choose Assign Macro to select one of the macros that should run when the button is clicked.

You can now close down the dialog box.

Alternatively you can add a button to a sheet in your workbook.

To do this go to View > Toolbars and choose the forms toolbar.

On the toolbar give the button icon a click then move your mouse over your sheet at the approximate location you would like to create your button.

Your mouse pointer has changed into a cross-hair. Left click and drag to draw your button. When you let go of the left mouse button Excel will ask what macro should run when the button in the sheet is clicked.

I hope this helps - do let me know if you have any further questions.


Kind regards,
Andrew

Excel tip:

Using the Quick Access Toolbar in Excel2010

The Quick Access Toolbar is included in virtually every Office product, including Outlook 2010, Word 2010, Excel 2010, and PowerPoint 2010.

You will find the Quick Access Toolbar in the top-left side of the window. To begin, click the Customize button (it's the little black arrow at the end of the toolbar).

Simply click the commands you want to include.

Virtually any command can be added to the Quick Access Toolbar. Click the More Commands option and a new window will open from where you can browse the commands including those not on the ribbon.

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.1 secs.