Solved

Having trouble selecting a VB option button repeatedly.

Posted on 1998-07-14
3
195 Views
Last Modified: 2010-05-03
I'm not able to select an option button repeatedly that has code associated with it to make a combo box appear, but the button works properly when I click on a different option button then back to the first button.

Any ideas?

-- Stacey --
0
Comment
Question by:s033slb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
khaledc earned 30 total points
ID: 1465755
Stacey,
Very Simple to solve the problem:
If your option button is called "option1" then what you have to do is to use one of the following events:
option1_MouseDown or option1_MouseUp, inside these sub type the following:
call Option1_Click
hence, your code will look like:

Sub Option1_MouseDown()
    call Option1_Click
End Sub

By doing this you will make sure the execution of your code every time you click on the option box even if it is chekced.

I did try the code myself and it is working
Write if you need more explanation.
Regards


0
 

Author Comment

by:s033slb
ID: 1465756
Thanks khaledc.

This works.

-- Stacey --

0
 
LVL 1

Expert Comment

by:khaledc
ID: 1465757
No sweat..
Glad to help
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question