Code:
If ActiveCell.Address = Range("A31").Address And ActiveCell.Value = "" Then
UserForm1.ComboBox1.RowSource = "Lists!A1:A23"
UserForm1.Show
End If
If ActiveCell.Address = Range("A32").Address And ActiveCell.Value = "" Then
UserForm1.ComboBox1.RowSource = "Lists!A1:A23"
UserForm1.Show
End If
If ActiveCell.Address = Range("A33").Address And ActiveCell.Value = "" Then
UserForm1.ComboBox1.RowSource = "Lists!A1:A23"
UserForm1.Show
End If
If ActiveCell.Address = Range("A34").Address And ActiveCell.Value = "" Then
UserForm1.ComboBox1.RowSource = "Lists!A1:A23"
UserForm1.Show
End If
If ActiveCell.Address = Range("A35").Address And ActiveCell.Value = "" Then
UserForm1.ComboBox1.RowSource = "Lists!A1:A23"
UserForm1.Show
End If
If ActiveCell.Address = Range("A36").Address And ActiveCell.Value = "" Then
UserForm1.ComboBox1.RowSource = "Lists!A1:A23"
UserForm1.Show
End If
I've tried:
Code:
If ActiveCell.Address = Range("A31:A36").Address And ActiveCell.Value = "" Then
But no luck there.
Also, while we're at it. In this example, they are a continuous range (A31 thru A36). Is there a way to add more continuous but separate ranges to the same If statement?
For instance:
Code:
If ActiveCell.Address = Range("A31:A36, D4:D9, J56:J68").Address And ActiveCell.Value = "" Then
I'm (fairly) sure there is a much cleaner way to accomplish what's in the top code box here, but I just can't find the right syntax.
Thank you very much, in advance, for any help you can provide.