PC Review


Reply
Thread Tools Rate Thread

Data Validation Using Radio Buttons

 
 
=?Utf-8?B?TGFuZG9u?=
Guest
Posts: n/a
 
      15th Feb 2007
I have set up a series of 4 radio buttons using the control toolbox.
Depending on which of the 4 radio buttons the user selects, I would like to
display the following:

1) Drop down list 1
2) Drop down list 2
3) Drop down list 3
4) No drop down list, the adjacent cell is left empty for manual user input

I have the drop down lists created, but I can't get them to appear on the
form based on the radio button selection. I can set them up as one sorted
list if that is better (as described here:
http://www.contextures.com/xlDataVal13.html )

I have not used VB for about 10 years, please help refresh my memory!

Thank you, -Landon
 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGF1bFc=?=
Guest
Posts: n/a
 
      16th Feb 2007
Sometimes using Data Validation I use indirect to make sure the length of
lists is correct, no matter how that list changes over time.

Instead of directing the validation to say cells C4:C20 have "C4:C20" wrote
in a box, and in the validation put =INDIRECT(C1)

Then, in C1 you could have say a vlookup, that keys off the radio button
option to show either
C4:C20
D420
E4:E40
So the cell in C1 changes to one of the above depending on the option, then
that range will be reflected in your validation list.

The only thing about this, is that option 4 wouldn't be possible, it would
always have to be a list. I can't see a way other than VBA to turn the
validation off and on

"Landon" wrote:

> I have set up a series of 4 radio buttons using the control toolbox.
> Depending on which of the 4 radio buttons the user selects, I would like to
> display the following:
>
> 1) Drop down list 1
> 2) Drop down list 2
> 3) Drop down list 3
> 4) No drop down list, the adjacent cell is left empty for manual user input
>
> I have the drop down lists created, but I can't get them to appear on the
> form based on the radio button selection. I can set them up as one sorted
> list if that is better (as described here:
> http://www.contextures.com/xlDataVal13.html )
>
> I have not used VB for about 10 years, please help refresh my memory!
>
> Thank you, -Landon

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: radio buttons, validation David Berry Microsoft Frontpage 0 11th Jan 2007 08:54 PM
Re: radio buttons, validation Thomas A. Rowe Microsoft Frontpage 0 11th Jan 2007 08:48 PM
Cannot change data in radio buttons on web sites???? =?Utf-8?B?b3JyeQ==?= Windows XP Help 2 24th Dec 2004 03:35 PM
VBA: Disable Frame and Radio Buttons based on Another Radio Button Being True Mcasteel Microsoft Excel Worksheet Functions 2 29th Oct 2004 07:06 PM
Help Data bindings with Radio Buttons Akin Seigmund Walter-Johnson III Microsoft Dot NET Framework 0 26th Feb 2004 06:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:38 AM.