[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

Having trouble selecting a VB option button repeatedly.

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
s033slb
Asked:
s033slb
  • 2
1 Solution
 
khaledcCommented:
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
 
s033slbAuthor Commented:
Thanks khaledc.

This works.

-- Stacey --

0
 
khaledcCommented:
No sweat..
Glad to help
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now