asyamonique
Well-known Member
- Joined
- Jan 29, 2008
- Messages
- 1,286
- Office Version
- 2013
- Platform
- Windows
Code:
Application.ScreenUpdating = False
Dim r As Long, Ac As Long, c As Long
If ComboBox10.Value <> -1 And ComboBox11.Value <> -1 Then
ListBox2.Clear
With Worksheets("taxibyname").Range("A1:A5000")
ReDim Ray(1 To .Count, 1 To 11)
For r = 1 To .Rows.Count
With ListBox2
.ColumnCount = 11
.ColumnWidths = "0;80;80;200;200;140;120;100;60;0;0"
End With
If ComboBox10.Value = .Cells(r, 1).Value And ComboBox11.Value = .Cells(r, 2).Value Then
c = c + 1
For Ac = 1 To 11
Ray(c, Ac) = .Cells(r, Ac)
Next Ac
End If
Next r
End With
End If
ListBox2.List = Ray
Application.ScreenUpdating = True
Hello,
Could you please help me with that code given above?
Column C "Date"and D "hrs" entries, I need to format that columns at listbox as "dd-mmm-yyyy" and "h:mm"
Also the progres gets long time to populate listbox is there any solution to fix that problem to make it shorter?
Many thanks