Hi,
I have a listbox with 14 columns and in column 1(0) I have a date which I have code that does work but only for the first row as shown below
and the code im using
I have a listbox with 14 columns and in column 1(0) I have a date which I have code that does work but only for the first row as shown below
and the code im using
VBA Code:
Sub UserForm_Initialize()
Dim lindex&
Dim rngMultiColumn As Range
Set rngMultiColumn = ThisWorkbook.Worksheets("Sheet1").Range("A4:N100")
With Me.AllocateBox1
.ColumnCount = 14
.ColumnWidths = "40;50;50;80;35;30;30;90;60;70;75;85;30"
.List = rngMultiColumn.Cells.Value
.List(lindex, 0) = (Format((.List(lindex, 0)), "dd-mmm"))
End With
End Sub