rajesh2014
Member
I have 5 listboxes. All Listboxes contains a fields Called "All".
There is a code in Excel VBA if Listbox is not selected as "All" then following code will execute.
But if any of the listbox is selected "ALL" item. for example then i need to change = sign to <> for example : if listbox1 selected "All" then i10.Range("A" & j) <> ary(UBound(ary)) I want all possible combinations.
There is a code in Excel VBA if Listbox is not selected as "All" then following code will execute.
Code:
If i10.Range("A"& j)= ary(UBound(ary))And i10.Range("B"& j).Value = ary1(UBound(ary1))And i10.Range("G"& j)= ary2(UBound(ary2))And i10.Range("C"& j)= ary3(UBound(ary3))And i10.Range("E"& j)= ary4(UBound(ary4))Then
d = d +1
e.Rows(d).Value = i10.Rows(j).Value
EndIf