gemcgraw
Board Regular
- Joined
- Mar 11, 2011
- Messages
- 72
I'm working on a project that involves two (2) ComboBoxes, the RowSource value and two different worksheets, DB1 & DB2.
The RowSource value for ComboBox8, depends on the value of ComboBox1. ComboBox1.value points to either DB1 or DB2. There is also a range in either of these sheets that remains constant, regardless of what sheet is selected in ComboBox1 (Range D3:D103)
Example:
ComboBox1.value = DB1
Therefore:
ComboBox8.RowSource.value = ComboBox1.Value & (range constant of "!D3:D103") -OR- 'DB1!D3:D103'
I want the user to see all values in range D3:D103 on worksheet DB1, not DB2 populate in ComboBox8, on click.
My issue is, this sub doesn't work. No error return, no data. Not sure what the better coding would be or if this is possible.
The RowSource value for ComboBox8, depends on the value of ComboBox1. ComboBox1.value points to either DB1 or DB2. There is also a range in either of these sheets that remains constant, regardless of what sheet is selected in ComboBox1 (Range D3:D103)
Example:
ComboBox1.value = DB1
Therefore:
ComboBox8.RowSource.value = ComboBox1.Value & (range constant of "!D3:D103") -OR- 'DB1!D3:D103'
I want the user to see all values in range D3:D103 on worksheet DB1, not DB2 populate in ComboBox8, on click.
My issue is, this sub doesn't work. No error return, no data. Not sure what the better coding would be or if this is possible.
Code:
Private Sub ComboBox8_Click()
ComboBox8.RowSource.Value = ComboBox1 & "!D3:D103"
End Sub