WBURKERT
Technical User
- May 28, 2010
- 73
Could someone tell me the VBA syntax to make a column in a Word table right justified?
I am also trying to make the Column(3) to always display numbers with two decimals and a comma seperating thousands. I would really, really like to have the column format be like currency - dollar sign aligned left and number aligned right. If I can get the number displayed with two decimals then I might just add a column next to it with a dollar sign in it. Hey thanks in advance.
Bill
With Goods
.Range.Style = "greenbar"
.Columns(1).Width = InchesToPoints(1.25)
.Columns(2).Width = InchesToPoints(4)
.Columns(3).Width = InchesToPoints(0.77)
' .Columns(3).NumberFormat = "$ #,##0.00"
' .Columns(3).HorizontalAlignment = xlRight
.Rows(1).Range.Font.Bold = True
.Rows.Alignment = wdAlignRowCenter
End With
I am also trying to make the Column(3) to always display numbers with two decimals and a comma seperating thousands. I would really, really like to have the column format be like currency - dollar sign aligned left and number aligned right. If I can get the number displayed with two decimals then I might just add a column next to it with a dollar sign in it. Hey thanks in advance.
Bill
With Goods
.Range.Style = "greenbar"
.Columns(1).Width = InchesToPoints(1.25)
.Columns(2).Width = InchesToPoints(4)
.Columns(3).Width = InchesToPoints(0.77)
' .Columns(3).NumberFormat = "$ #,##0.00"
' .Columns(3).HorizontalAlignment = xlRight
.Rows(1).Range.Font.Bold = True
.Rows.Alignment = wdAlignRowCenter
End With