On my personal laptop in a test workbook I have the following code which sets the RowSource for ListBox4 based on the selection/Value of ListBox2 - And it works perfectly.
On another laptop I have the following code which I am essentially asking to do the same thing but in a more complex code environment.
The following code works perfectly excluding the " If Me.LstOutcomes.Value = "Left Message"" The selection in LstOutcomes is indeed "Left Message"
However, the line If Me.LstOutcomes.Value = "Left Message" returns a Null error.
If I skip this line the RowSource for ListBox: LstLMNotes is set perfectly...
Not seein' what I'm missin'
Thank You, All as always for any assistance
RT 91
Code:
If ListBox2.Value = "Boo" Then
Me.ListBox4.RowSource = "Sheet4!B2:B9"
ElseIf Me.ListBox2.Value = 2 Then
Me.ListBox4.RowSource = "Sheet4!C2:C9"
End if
On another laptop I have the following code which I am essentially asking to do the same thing but in a more complex code environment.
The following code works perfectly excluding the " If Me.LstOutcomes.Value = "Left Message"" The selection in LstOutcomes is indeed "Left Message"
However, the line If Me.LstOutcomes.Value = "Left Message" returns a Null error.
If I skip this line the RowSource for ListBox: LstLMNotes is set perfectly...
Not seein' what I'm missin'
Code:
If Opt1n1 = True Then
GoTo Foo
End if
Foo:
Set Ws1 = ThisWorkbook.Sheets("LM Notes")
Lr1 = Ws1.Cells(Rows.Count, 1).End(xlUp)
Set Rng1 = Ws1.Range("A2:B" & Lr1)
If Me.LstOutcomes.Value = "Left Message" Then
Me.LstLMNotes.RowSource = Rng1.Address(External:= True)
End if
End Sub
Thank You, All as always for any assistance
RT 91