Solved

Having trouble selecting a VB option button repeatedly.

Posted on 1998-07-14
3
190 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
Comment Utility
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
Comment Utility
Thanks khaledc.

This works.

-- Stacey --

0
 
LVL 1

Expert Comment

by:khaledc
Comment Utility
No sweat..
Glad to help
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now