A clicking button on the spreadsheet

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Guest
Hello People
I saw some excel spreadsheets, they have the button attached to them. And when they click, it runs the macro or shows the userform if there is one
So, I am wondering how do they create the button and how to make it runs?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Thanks Nobby
One last question, now in my workbook, I have some worksheets. Is it possible to have my macro and clicking button show and run on all the spreadsheets in the workbook?
Thanks again
 
Upvote 0
Set up the Macro, as described. Then you need to add the button to your toolbar rather than within the sheet - this will allow you to use it for any sheet in the workbook.

To add a button to the toolbar, follow this:

View/Toolbars/Customise.

Select the Commands tab and scroll down until you see Macro, select this.

You will now see at least 1 button plus the "Custom Menu Item". Select this Custom item and drag it on to your toolbar. Now right click on the button and change the text to what you want to see. You can also change the look of the button from here. When you've finished close the customise box.

Left click on the new button and this will bring up a dialog box showing your list of Macros - just select the one you want to assign to this button.

Job done!

Nobby
 
Upvote 0

Forum statistics

Threads
1,223,391
Messages
6,171,824
Members
452,426
Latest member
cmachael

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top