Happy New Year. I'm attempting to compare items from one listbox with those in another listbox (both on the same userform).
I appear to be using the wrong approach because ListBoxA stops passing values when I introduce a nested ForLoop to look at ListBoxB. Code as follows:
For i = 0 To myForm.ListBoxA.ListCount - 1
myForm.ListBoxA.ListIndex = i
AItem = myForm.ListBoxA.Value
MsgBox ("List A: " & AItem)
' For j = 0 To myForm.ListBoxB.ListCount - 1
' Next j
As soon as I uncomment the inner For-Next the MsgBox will not display AItem
This is most alarming!