Hi all,
I got this code that fills my listbox;
In some column are dates (for example column B)
That column shows the date in the listbox as 14-3-2023.
Can i format that specific column to dd/mmm/yy ?
In some columns are percentages (columns J, M, P, S, V)
Those percentages are displayed as 0.874949494.
Can i format a specific column so it displays 87%?
Generic question; how can i format a specific column in my code?
I got this code that fills my listbox;
VBA Code:
Option Explicit
Dim Ary As Variant
Private Sub UserForm_Initialize()
Ary = Sheets("BMR data").Range("A3", Sheets("BMR data").Range("A" & Rows.Count).End(xlUp).Offset(, 22)).Value
With Me.lstSearchResults
.ColumnCount = 22
.ColumnWidths = "0;100;0;0;0;0;0;0;0;100;0;0;100;0;0;100;0;0;100;0;0;1"
.List = Ary
End With
End Sub
In some column are dates (for example column B)
That column shows the date in the listbox as 14-3-2023.
Can i format that specific column to dd/mmm/yy ?
In some columns are percentages (columns J, M, P, S, V)
Those percentages are displayed as 0.874949494.
Can i format a specific column so it displays 87%?
Generic question; how can i format a specific column in my code?