My code is as below and I want to remove duplicates when taking data from excel.
The result from this is as below,
But I want to take my output as,
How can I take my output?
Thank you.
Code:
vArray = oXLSheet.Range("E12:E140").Value
vArray1 = oXLSheet.Range("U12:U140").Value
cboOperation.Clear
For lngRow = LBound(vArray, 1) To UBound(vArray, 1)
If Not IsEmpty(vArray(lngRow, 1)) Then
cboOperation.AddItem vArray(lngRow, 1)
End If
Next lngRow
The result from this is as below,
Code:
179
234
567
179
657
234
But I want to take my output as,
Code:
179
234
567
657
How can I take my output?
Thank you.