Dear All Masters,
I want to make my ListBox to be tidy with ListIndex. It means that I want to have straight line column in ListBox. Currently, I don't know how to input ListIndex into below code. Pls kindly help me accordingly. Thanks all Masters.
Sub Pending()
Dim r As Long
Dim msg As String, i As Long, a As Variant
UserForm1.ListBox1.Clear
For i = 13 To 100000
If Range("F" & i) <> "" And Cells(i, 14).Value = "" Then
UserForm1.ListBox1.AddItem Format(Range("E" & i), "dd-mmm") & " " & Range("F" & i) & " " & Range("G" & i) & " " & Range("K" & i)
End If
Next
UserForm1.Show
End Sub
I want to make my ListBox to be tidy with ListIndex. It means that I want to have straight line column in ListBox. Currently, I don't know how to input ListIndex into below code. Pls kindly help me accordingly. Thanks all Masters.
Sub Pending()
Dim r As Long
Dim msg As String, i As Long, a As Variant
UserForm1.ListBox1.Clear
For i = 13 To 100000
If Range("F" & i) <> "" And Cells(i, 14).Value = "" Then
UserForm1.ListBox1.AddItem Format(Range("E" & i), "dd-mmm") & " " & Range("F" & i) & " " & Range("G" & i) & " " & Range("K" & i)
End If
Next
UserForm1.Show
End Sub