RE: Button to call a Macro ?

Dhimit

Board Regular
Joined
Jul 24, 2007
Messages
195
RE: Button to call a Macro ?

Hi,

Is it possible to place a BUTTON on a worksheet to call a Macro as opposed to using a 'shortcut key' ?

Dhimit
 

Some videos you may like

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Lewiy

Well-known Member
Joined
Jan 5, 2007
Messages
4,284
Certainly is!!
Go to View>Toolbars>Forms.
Pick the button from this toolbar and place it on the worksheet, the macro dialog will open automatically from where you can select the macro you want it to run.
 

ADAMC

Well-known Member
Joined
Mar 20, 2007
Messages
1,166
Yes....By worksheet button i assume you mean a button from the forms menu:

On the forms menu click button:
Go to the worksheet and place the button where you want it to be placed, Excel by default will ask you if you wish to assign a macro to this button.

If you dont have the forms menu.....

Tools > Customize > Toolbars > pick forms from the list,
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
47,926
Office Version
  1. 365
Platform
  1. Windows
Dhimit

There is also a Command Button on the "Control Toolbox" toolbar that can also be used for this pupose - though in a slightly different way. Post back if you need further help.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,207
Messages
5,594,843
Members
413,944
Latest member
3xc3ln00b

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
Top