radiobuttons switch with space

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

Guest

Hi

I would like to know how I can switch between options within radiobuttons just by moving the cursor (so without havind to use the spacebar to select the option). Ho can I do that

Thx in advance
 
Here's the easy way:

If you've got lots of OptionButtons (more than it's worth adding these
procedures manually) then you may want to investigate some form of event
capturing.


Private Sub OptionButton1_MouseMove(ByVal Button As Integer, ByVal Shift As
Integer, ByVal X As Single, ByVal Y As Single)
OptionButton1.Value = True
End Sub

Private Sub OptionButton2_MouseMove(ByVal Button As Integer, ByVal Shift As
Integer, ByVal X As Single, ByVal Y As Single)
OptionButton2.Value = True
End Sub

--
Rob van Gelder - http://www.vangelder.co.nz/excel


Courage said:
Hi,

I would like to know how I can switch between options within radiobuttons
just by moving the cursor (so without havind to use the spacebar to select
the option). Ho can I do that ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top