Hi as a newbie I am trying to build a table from a recordset in Access.
So I have the table
ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=varNumRec, NumColumns:=5
I have the font
With ActiveDocument.Tables(1).Rows(1).Range.Font
.Name = "Arial"
.Size = 12
.Bold = True
End With
and I have the text in the column ( there are 5 columns)
Selection.Tables(1).Cell(1, 4).Range.Text = "Days Outstanding"
I just can not find the code to center the text in any or all of the columns. I have searched the internet but it seems very difficult to find an answer.
Please help.
So I have the table
ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=varNumRec, NumColumns:=5
I have the font
With ActiveDocument.Tables(1).Rows(1).Range.Font
.Name = "Arial"
.Size = 12
.Bold = True
End With
and I have the text in the column ( there are 5 columns)
Selection.Tables(1).Cell(1, 4).Range.Text = "Days Outstanding"
I just can not find the code to center the text in any or all of the columns. I have searched the internet but it seems very difficult to find an answer.
Please help.