I have used the "FormatNumber" VBA function to format Column 1 in a ListBox for numbers with four decimal points:
Area(1, j) = FormatNumber(Range(“A1”), 4)
If I wanted a different format for column 2 (e.g. six decimal points) this can easily be done with:
Area(2, j) = FormatNumber(Range(“A1”), 6)
My question is whether a comparable VBA format function exists to format text to be either left, center, or right justified for different columns. So far I have only been able to use the same formatting for text for all columns.
Any suggestions? Thanks much.
Area(1, j) = FormatNumber(Range(“A1”), 4)
If I wanted a different format for column 2 (e.g. six decimal points) this can easily be done with:
Area(2, j) = FormatNumber(Range(“A1”), 6)
My question is whether a comparable VBA format function exists to format text to be either left, center, or right justified for different columns. So far I have only been able to use the same formatting for text for all columns.
Any suggestions? Thanks much.