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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

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,143,640
Messages
5,719,985
Members
422,256
Latest member
downeybm

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