Excel remains in run mode after spin button change

Bastiaan Meijerink

New Member
Joined
Jul 30, 2013
Messages
3
Hello everyone,

If I start a blank Excel 2010 document, place an ActiveX spinbutton and consequently trigger it, the spinbutton itself becomes selected and Excel remains in VBA run mode (buttons in menu can not be pressed).

Of course, this behavior does not occur with a Form Control spinbutton.

I am very curious if there is a simple solution to this problem? I must be overlooking something.

Thanks and kind regards,

Bas
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Did you click on Design Mode to take Excel out of Design Mode?
VoG,

Yes, even the use of standard 'endings' like:
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
Application.EnableEvents = True


do not seem to do the trick.
 
Upvote 0
It seems that the spinbutton (sometimes) keeps focus after it is pressed. A workaround that worked in my example is to also implement a GotFocus event for the spinbutton in VBE. In this case:

Sub SpinButton1_GotFocus()
[A1].Activate
End Sub

The focus now redirects to cell A1 every time the spin button is pressed.
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,543
Members
449,316
Latest member
sravya

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