controls in spreadsheets

ridgetown_rick

Board Regular
Joined
Aug 28, 2002
Messages
193
I have created a form in a worksheet. I would like to include a VB button that would run a macro once all the blanks are filled in. When I put a control button on the worksheet, it is just a dumb button (still in "design mode", if you will). How do I make it active so that when a user clicks on the button it runs off and does its thing?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

stevebausch

Well-known Member
Joined
May 11, 2002
Messages
810
While in Design Mode, right-click, select View Code, put your code there, or call the routine(s) from the routine that appears.
 

ridgetown_rick

Board Regular
Joined
Aug 28, 2002
Messages
193
Solved my own problem. Seems it works as expected when I grab the button from the forms toolbar - I was using the button from the controls toolbar.
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Just for future reference, if you use a button from the Control Toolbox you need to click the first icon in the floating toolbar to exit (toggle) design mode. It looks like a geometry set.
 

Forum statistics

Threads
1,181,091
Messages
5,928,037
Members
436,583
Latest member
AlxBtx

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