Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
1. You need to format the numbers into a string and then put them onto to the
list box. ie: s = Format(1.22223, "#,##0.00") You may then need to pad the left had side and there are always problems with bigger numbers. For the text you need to pad it with spaces. (ie check the length with len() and then add spaces in the right hand side. 2. As seen in the format function you can use the same formats as the cells. -- Hope this helps Martin Fishlock, www.nyfconsultants.com, Bangkok, Thailand Please do not forget to rate this reply. " wrote: I would like to have a column in a list box that contains numbers with decimals and have the decimals aligned. Another column has text that should be left aligned. Is there ANY way to do this. A similar question: Can I apply the format of the cells in the worksheet to the "same" "cells" in the list box? (If the contents of cell A6 is displayed in a listbox, I would like the format of cell A6 to be used.) Many thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
align left and right in listbox | Excel Programming | |||
How do I align decimals in Excel when not all numbers have % sym. | Excel Discussion (Misc queries) | |||
Accounting format does not align decimals. | Excel Discussion (Misc queries) | |||
Can I right-align numbers in a Excel's VBA listbox | Excel Programming | |||
How to align decimals and limit number of sig fig's displayed | Excel Programming |