PC Review


Reply
Thread Tools Rate Thread

How to: Create Dependent Drop Down in a Form

 
 
Benjamin
Guest
Posts: n/a
 
      19th Aug 2009
I've got two combo boxes in a form.
One is the "Master" and the second is the dependent.
I can do this in a regular cell with validation drop-downs.
How do I create the dependent in the userform?

-----------------------------------------------------------
<<RANGES>>

Master Range =LISTS!$A$2:INDEX(LISTS!$A:$A,COUNTA(LISTS!$A:$A))
UseList Range =INDEX(ValData,1,MATCH('Data Entry'!B75,LISTS!$1:$1,0)):
INDEX(ValData,Counter,MATCH('Data Entry'!B75,LISTS!$1:$1,0))

-----------------------------------------
<<VBA>>
<<Current UserForm Initialize code:>>

Private Sub UserForm_Initialize()


cboDiscipline = "--Select Here First--"
cboDescription = "--Select Here Second--"

With Worksheets("LISTS")
Me.cboDiscipline.List _
= .Range("Master").Value
End With




End Sub
 
Reply With Quote
 
 
 
 
ryguy7272
Guest
Posts: n/a
 
      19th Aug 2009
Will these work for you?
http://www.contextures.com/xldataval02.html
http://www.contextures.com/xlDataVal13.html

HTH,
Ryan---
--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Benjamin" wrote:

> I've got two combo boxes in a form.
> One is the "Master" and the second is the dependent.
> I can do this in a regular cell with validation drop-downs.
> How do I create the dependent in the userform?
>
> -----------------------------------------------------------
> <<RANGES>>
>
> Master Range =LISTS!$A$2:INDEX(LISTS!$A:$A,COUNTA(LISTS!$A:$A))
> UseList Range =INDEX(ValData,1,MATCH('Data Entry'!B75,LISTS!$1:$1,0)):
> INDEX(ValData,Counter,MATCH('Data Entry'!B75,LISTS!$1:$1,0))
>
> -----------------------------------------
> <<VBA>>
> <<Current UserForm Initialize code:>>
>
> Private Sub UserForm_Initialize()
>
>
> cboDiscipline = "--Select Here First--"
> cboDescription = "--Select Here Second--"
>
> With Worksheets("LISTS")
> Me.cboDiscipline.List _
> = .Range("Master").Value
> End With
>
>
>
>
> End Sub

 
Reply With Quote
 
Benjamin
Guest
Posts: n/a
 
      20th Aug 2009
No I need to access combo box 1 's value
and allow that to fit into the combobox two's selection options that use the
..additem

"ryguy7272" wrote:

> Will these work for you?
> http://www.contextures.com/xldataval02.html
> http://www.contextures.com/xlDataVal13.html
>
> HTH,
> Ryan---
> --
> Ryan---
> If this information was helpful, please indicate this by clicking ''Yes''.
>
>
> "Benjamin" wrote:
>
> > I've got two combo boxes in a form.
> > One is the "Master" and the second is the dependent.
> > I can do this in a regular cell with validation drop-downs.
> > How do I create the dependent in the userform?
> >
> > -----------------------------------------------------------
> > <<RANGES>>
> >
> > Master Range =LISTS!$A$2:INDEX(LISTS!$A:$A,COUNTA(LISTS!$A:$A))
> > UseList Range =INDEX(ValData,1,MATCH('Data Entry'!B75,LISTS!$1:$1,0)):
> > INDEX(ValData,Counter,MATCH('Data Entry'!B75,LISTS!$1:$1,0))
> >
> > -----------------------------------------
> > <<VBA>>
> > <<Current UserForm Initialize code:>>
> >
> > Private Sub UserForm_Initialize()
> >
> >
> > cboDiscipline = "--Select Here First--"
> > cboDescription = "--Select Here Second--"
> >
> > With Worksheets("LISTS")
> > Me.cboDiscipline.List _
> > = .Range("Master").Value
> > End With
> >
> >
> >
> >
> > End Sub

 
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
How to create 2 dependent drop down lists from 1 original drop dow Caroline Microsoft Excel Misc 5 1st May 2009 02:19 PM
Data Entry Form Changes Dependent On Drop Down serviceenvoy@gmail.com Microsoft Access Form Coding 3 4th Jun 2007 05:03 AM
Can I create dependent drop down boxes in Word 2003? =?Utf-8?B?dmlja29yeTY=?= Microsoft Word Document Management 2 2nd Jul 2006 07:27 AM
Can I create dependent drop down boxes in Word 2003? =?Utf-8?B?dmlja29yeTY=?= Microsoft Word Document Management 0 2nd Jul 2006 03:33 AM
trying to create form field choices that are dependent on others =?Utf-8?B?Um9iIE9kdW0=?= Microsoft Frontpage 2 8th Feb 2006 05:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:43 AM.