asyamonique
Well-known Member
- Joined
- Jan 29, 2008
- Messages
- 1,286
- Office Version
- 2013
- Platform
- Windows
Code:
Dim ws As WorksheetDim rng As Range
Dim i As Long
Dim J As Long
Set ws = Worksheets.Add
Set rng = ws.Range("A1")
For i = 0 To ListBox1.ColumnCount - 1
For J = 0 To ListBox1.ListCount - 1
rng.Offset(J, i) = ListBox1.Column(i, J)
Next J
Next i
Columns("A:A").Resize(, ListBox1.ColumnCount).EntireColumn.AutoFit
Application.DisplayAlerts = False
ws.PageSetup.Orientation = xlLandscape
ws.PrintOut
ws.Delete
Application.DisplayAlerts = True
Good Day,
My question with that given above code is there any possibility to sort listbox column 4 datas from A to Z?
Many Thaks.