Hi all,
i use the following code to get data in my listbox;
Now only the first data in the listbox is formatted right.
How can i make it that all the data is formatted right?
i use the following code to get data in my listbox;
VBA Code:
Private Sub UserForm_Initialize()
Dim lindex&
'Puts the user form in the middle of the Excel screen when opened.
Me.StartupPosition = 0
Me.Top = (Application.Height / 2) - (Me.Height / 2)
Me.Left = (Application.Width / 2) - (Me.Width / 2)
Me.lstSearchResults.ColumnCount = 4
Me.lstSearchResults.List = Sheets("BMRcloset").[F7:I37].Value
With Me.lstSearchResults
.List(lindex, 0) = (Format((.List(lindex, 0)), "dd/mmm/yy"))
End With
End Sub
Now only the first data in the listbox is formatted right.
How can i make it that all the data is formatted right?