Hi I've just started using a ListBox in Excel to view a table from one sheet on another.
I've been able to do this using very simple code as
However, as this does not include formatting, the original data which may look like this:
is displayed as:
I'm wondering if it's possible to format the data displayed on the listbox as it is in the original sheet (column A as an integer and columns B to E as currency separated by commas with no decimals.
How would I go about this ?
Thank you so much
I've been able to do this using very simple code as
VBA Code:
Private Sub UserForm_Initialize()
Me.ListBox1.List = Worksheets("Cashflows").Range("A4:H26").Value
End Sub
However, as this does not include formatting, the original data which may look like this:
is displayed as:
I'm wondering if it's possible to format the data displayed on the listbox as it is in the original sheet (column A as an integer and columns B to E as currency separated by commas with no decimals.
How would I go about this ?
Thank you so much