PC Review


Reply
Thread Tools Rate Thread

How to create sub-lists?

 
 
AA Arens
Guest
Posts: n/a
 
      11th May 2006
Sheet with tasks and subtasks from employees.

I do have two colums. The first I choose a task from a list. Then I
want to choose a sub-task from the second column and this subtask
depends on the task choosen in the first column. How to perform it?

At this moment I do only have the task list (with name), on another
worksheet.

Bart
Ex 2003.

 
Reply With Quote
 
 
 
 
Debra Dalgleish
Guest
Posts: n/a
 
      11th May 2006
You can use dependent data validation lists, as described here:

http://www.contextures.com/xlDataVal02.html

AA Arens wrote:
> Sheet with tasks and subtasks from employees.
>
> I do have two colums. The first I choose a task from a list. Then I
> want to choose a sub-task from the second column and this subtask
> depends on the task choosen in the first column. How to perform it?
>
> At this moment I do only have the task list (with name), on another
> worksheet.
>
> Bart
> Ex 2003.
>



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

 
Reply With Quote
 
AA Arens
Guest
Posts: n/a
 
      12th May 2006
Thanks Debra, tht was very usefull.
Have a question.
When I choose another value from the first list, the value in the
second list what still belongs to another category, still remains in
the call. How can I have it automatically cleared when I choose another
vlaue in the first list?

Bartt

 
Reply With Quote
 
Debra Dalgleish
Guest
Posts: n/a
 
      12th May 2006
You could use data validation in both columns to prevent invalid
selections. There's a sample here:

http://www.contextures.com/excelfiles.html

Under Data Validation, look for 'Dependent Lists Country City'

AA Arens wrote:
> Thanks Debra, tht was very usefull.
> Have a question.
> When I choose another value from the first list, the value in the
> second list what still belongs to another category, still remains in
> the call. How can I have it automatically cleared when I choose another
> vlaue in the first list?
>
> Bartt
>



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

 
Reply With Quote
 
AA Arens
Guest
Posts: n/a
 
      13th May 2006
I choosed the code of the UpdateDependent.xls to have the value of the
sublist changed when I choose another value in the 1st list. To have it
cleared, I just have all sublists starting with a blank cell.

I also have two words in my 1st list and choosed for the SUBSTITUE
command in http://www.contextures.com/xlDataVal02.html.

Although, I am still able to choose a value in the sublist, after a two
word value in the 1st list, I still get the error "Coul not change
dependend cell", from the code. How to bypass it?

Bart

 
Reply With Quote
 
AA Arens
Guest
Posts: n/a
 
      13th May 2006
My 2nd question is, I want to have the lists as blank value in starting
position. So, the 1st list starts with an empty cell. Then I also get
the eror from the code "Coul not change dependend cell",. How to avoid
this? I am not albe to make a blank name of a blank sublist.

 
Reply With Quote
 
=?Utf-8?B?Um9uIENvZGVycmU=?=
Guest
Posts: n/a
 
      13th May 2006
AA Arens:

Instead of heading each list with a blank cell, try this:

Replace this line in the VBA code (which selects the 1st list item):
Me.Range("D2").Value = rng.Offset(0, 0).Value

with this (which clears the dependent list cell):
Me.Range("D2").ClearContents

Is that something you can work with?

***********
Regards,
Ron

XL2002, WinXP


"AA Arens" wrote:

> My 2nd question is, I want to have the lists as blank value in starting
> position. So, the 1st list starts with an empty cell. Then I also get
> the eror from the code "Coul not change dependend cell",. How to avoid
> this? I am not albe to make a blank name of a blank sublist.
>
>

 
Reply With Quote
 
AA Arens
Guest
Posts: n/a
 
      13th May 2006
That clears the cell, but when I want to choose a value the starting
position is at the bottom of the dropdown list. Thats why I prefer the
Offset.

Me.Range("D2").ClearContents followed by
Me.Range("D2").Value = rng.Offset(0, 0).Value

does not solve the problem.

Any other idea?

 
Reply With Quote
 
AA Arens
Guest
Posts: n/a
 
      13th May 2006
Unfortunately only the first 4 rows works finely when I copied the part
25X as I do have 25 rows with the list.

This is the code:

If Not Intersect(Target, Me.Range("B10")) Is Nothing Then
If Target.Count > 1 Then Exit Sub
Application.EnableEvents = False
Set rng = ActiveWorkbook.Names(Target.Value).RefersToRange
Me.Range("C10").Value = rng.Offset(0, 0).Value
End If

And that 25 x for B11/C11, B12/C12 etc.

 
Reply With Quote
 
=?Utf-8?B?Um9uIENvZGVycmU=?=
Guest
Posts: n/a
 
      13th May 2006
AA Arens:

Sorry, but I can't duplicate what you're describing.

Using Debra Dalgleish's UpdateDependent model with the VBA code change I
posted earlier, I added 30 items to the CITY list.

Any change to the parent list cleared the dependent list. Clicking on the
dependent list simply displays the dropdown, listing the items beginning at
the top,

***********
Regards,
Ron

XL2002, WinXP


"AA Arens" wrote:

> That clears the cell, but when I want to choose a value the starting
> position is at the bottom of the dropdown list. Thats why I prefer the
> Offset.
>
> Me.Range("D2").ClearContents followed by
> Me.Range("D2").Value = rng.Offset(0, 0).Value
>
> does not solve the problem.
>
> Any other idea?
>
>

 
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 several lists IlkaAntonie Microsoft Excel New Users 3 23rd May 2006 02:39 PM
How to create several lists IlkaAntonie Microsoft Excel New Users 0 22nd May 2006 05:33 PM
How to create sub-value lists =?Utf-8?B?YW15aw==?= Microsoft Access Forms 1 9th Aug 2005 07:26 PM
Size Limits of Distribution Lists & How to use existing lists as sources from which to create other lists =?Utf-8?B?aGFiYWRhaTE=?= Microsoft Outlook Discussion 1 27th Apr 2004 04:15 PM
create '<UL>' lists Dionísio Monteiro Microsoft ASP .NET 3 29th Mar 2004 08:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:29 PM.