Solved

Having trouble selecting a VB option button repeatedly.

Posted on 1998-07-14
3
192 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
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

830 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