Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cascading Combo Box & Content Filtering

I have a multi-sheet workbook in which I would like to autofill key cells.
Sheet 1 contains spec records that can be tagged for complexity: high,
medium, low. Sheet 2 contains the autofill cells.

My problem: I wish to use two combo boxes to filter the spec records by tag.
Combo Box 1 allows the user to select the appropriate complexity level.
Based on this selection, Combo Box 2 should populate with the filtered
records. Selecting a record in Combo Box 2, finally, should populate the
autofill cells with the appropriate information.

I attempted to use Tom Oglivy's code on "Filtered list for Combo Box
ListFillRange" response to populate Combo Box 2. It is not working and, as a
VBA newbie, I need additional assistance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cascading Combo Box & Content Filtering

I am including the code I have at present (below). I am having trouble with
the AddItem property. It appears that I cannot add an item from another
defined range. Any help would be appreciated.

Private Sub ComboBox1_Click()

Dim cRange As Range
Set cRange = Me.Range("RNG1")
Dim sRange As Range
Set sRange = Me.Range("LS1")
Dim x As Integer 'For Row
x = 10

Me.ComboBox2.Clear

For Each sRange In Range(cRange).Columns(1).Cells
If cRange.Value = Me.ComboBox1.Value Then
For x = 10 To 19
ComboBox2.AddItem sRange.Cells(x, 34)
ComboBox2.List(ComboBox2.ListCount - 1, 1) = cRange.Offset(0, 1)
Next x
End If
Next
End Sub

"Joe Jacobs" wrote:

I have a multi-sheet workbook in which I would like to autofill key cells.
Sheet 1 contains spec records that can be tagged for complexity: high,
medium, low. Sheet 2 contains the autofill cells.

My problem: I wish to use two combo boxes to filter the spec records by tag.
Combo Box 1 allows the user to select the appropriate complexity level.
Based on this selection, Combo Box 2 should populate with the filtered
records. Selecting a record in Combo Box 2, finally, should populate the
autofill cells with the appropriate information.

I attempted to use Tom Oglivy's code on "Filtered list for Combo Box
ListFillRange" response to populate Combo Box 2. It is not working and, as a
VBA newbie, I need additional assistance.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cascading combo boxes for project Hustler24 New Users to Excel 9 March 18th 06 06:22 AM
Cascading Combo Boxes [email protected] Excel Programming 2 February 10th 06 09:17 AM
Problems with cascading combo box, appears to only be 1 column's numeric values (zipcodes) tHeRoBeRtMiTcHeLL Excel Programming 1 November 20th 05 05:06 PM
cascading combo boxes dan Excel Programming 1 May 13th 04 09:00 PM
how to use combo cascading box Paulo A. Carvalho Excel Programming 0 September 21st 03 03:01 AM


All times are GMT +1. The time now is 07:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"