473,382 Members | 1,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

autoformatting option buttons

1
Sorry, just a newbie and what I call a 'bruteforce' programmer. I'm using a VBform in EXCEL to pass info to a worksheet. I have 7 option buttons (exclusive?, only one can be true) and want to highlight the option button that has been selected and 'gray-out' those not selected. I can do this by writing code for each of the option buttons as Button_Click procedures but there must be an easier way (I actually have 6 groups of 7 buttons on the form). There must be an easier way to accomplish this. Can anyone provide an example?

Thanks, John
Nov 10 '06 #1
1 1406
albertw
267 100+
Sorry, just a newbie and what I call a 'bruteforce' programmer. I'm using a VBform in EXCEL to pass info to a worksheet. I have 7 option buttons (exclusive?, only one can be true) and want to highlight the option button that has been selected and 'gray-out' those not selected. I can do this by writing code for each of the option buttons as Button_Click procedures but there must be an easier way (I actually have 6 groups of 7 buttons on the form). There must be an easier way to accomplish this. Can anyone provide an example?

Thanks, John
hi

fyg
optionbuttons have no grayscale
when you press one, the others well be de-selected if the are positioned on the same form (no frames etc)
checkboxes however have a grayscale.
think you need to revaluate the ones you want to be 'grayed'.
best option is create checkboxes in an array

do checkbox_clik (index as integer) stuff, where all but index is grayed.
Nov 10 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Robert | last post by:
Hello. I have been trying out the Lebans ToolTip Classes at http://www.lebans.com/tooltip.htm, to display "balloon" style help tips in a form. The classes I am using are located at...
11
by: MLH | last post by:
Why is that? If I choose the tiny check boxes which are hard to hit with a mouse, it works fine. But option buttions, shich can be sized big enough for people with limited sight and dexterity...
1
by: Shawn Melton | last post by:
Is there a way to turn on autoformatting in C# like the default ni VB? Like to create auto indents and to put spaces around equal signs?
5
by: tsnyder | last post by:
I need to have an option button that allows editing to a field only when it is checked.
1
by: Stephen D Cook | last post by:
In my form I have an option group with 3 option buttons. My form is tied to a table. the options are Temp, Permanent and Overtime. I have these inside a frame. I have an AddRecord button to enter...
0
by: sparks | last post by:
I was using the keypress with an option group If Me.ActiveControl.ControlType = acOptionGroup Then If KeyAscii >= 48 And KeyAscii <= 51 Then Me.ActiveControl.Value = Chr(KeyAscii) End If End...
2
beacon
by: beacon | last post by:
Hi everybody, I have a form that has a combo box that asks the user to select the program they work on. Once the user selects the program, a SQL statement populates the row source for 4 staff...
3
by: andersond | last post by:
I have a webpage that uses visible and hidden tables to create the effect of going from screen to screen. Because a user might want to go back and change previous selections I have a "previous page"...
3
by: brian210 | last post by:
I am currently trying to make a four question quiz. Each question is on a new page. There will be a previous button and a next button to take the user to the previous and next question respectively....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.