Greetings,
I am fairly new to Excel VBA and need some help. I have an excel form that inlcudes a multicolumn listbox that displays item number, item description, and price. It is populated from a master spreadsheet which includes an amount field. The amount field is a float that is formated as currency. The master sheet also needs to be filtered based on other selections in the form.
If I use rowsource to populate the listbox, it picks up the currency formatting, but it displays all rows regardless of any data filtering.
If I copy the range to an array and then copy the array to the listbox, I get the filtered rows, but I get unformatted numbers (floats) insead of formatted currency.
How can I populate a multicolumn listbox with formatted values?
Your help will be greatly appreciated!
Leonv
I am fairly new to Excel VBA and need some help. I have an excel form that inlcudes a multicolumn listbox that displays item number, item description, and price. It is populated from a master spreadsheet which includes an amount field. The amount field is a float that is formated as currency. The master sheet also needs to be filtered based on other selections in the form.
If I use rowsource to populate the listbox, it picks up the currency formatting, but it displays all rows regardless of any data filtering.
If I copy the range to an array and then copy the array to the listbox, I get the filtered rows, but I get unformatted numbers (floats) insead of formatted currency.
How can I populate a multicolumn listbox with formatted values?
Your help will be greatly appreciated!
Leonv