R
rob nobel
I'm trying to convert the following to Select Case. As I have 8 tests in
this section alone and more in various other places, I feel to change to
Select Case will speed up the procedures. Please tell me if that's not so.
If ListBox1.ListIndex = 0 Then Range("N5") = True
If ListBox1.ListIndex = 1 Then Range("N6") = True
If ListBox1.ListIndex = 2 Then Range("N7") = True
This is my effort but it doesn't work. Can someone please tell me what's
wrong here?
(I've also tried Select Case ListBox1.ListIndex.Value without success)
Select Case ListBox1.ListIndex
Case ListBox1.ListIndex = 0
Range("N5") = True
Case ListBox1.ListIndex = 1
Range("N6") = True
Case ListBox1.ListIndex = 2
Range("N7") = True
End Select
I also have these which I probably want to convert to Select Case method as
well.
If Range("N5") = True Then Range("O5") = L
If Range("N6") = True Then Range("O6") = L
If Range("N7") = True Then Range("O7") = L
Can you also suggest how to do that, please?
Rob
this section alone and more in various other places, I feel to change to
Select Case will speed up the procedures. Please tell me if that's not so.
If ListBox1.ListIndex = 0 Then Range("N5") = True
If ListBox1.ListIndex = 1 Then Range("N6") = True
If ListBox1.ListIndex = 2 Then Range("N7") = True
This is my effort but it doesn't work. Can someone please tell me what's
wrong here?
(I've also tried Select Case ListBox1.ListIndex.Value without success)
Select Case ListBox1.ListIndex
Case ListBox1.ListIndex = 0
Range("N5") = True
Case ListBox1.ListIndex = 1
Range("N6") = True
Case ListBox1.ListIndex = 2
Range("N7") = True
End Select
I also have these which I probably want to convert to Select Case method as
well.
If Range("N5") = True Then Range("O5") = L
If Range("N6") = True Then Range("O6") = L
If Range("N7") = True Then Range("O7") = L
Can you also suggest how to do that, please?
Rob