Aligning a Word Table

  • Thread starter Thread starter Broadwaybaby8
  • Start date Start date
B

Broadwaybaby8

I created a Word Table using
WordObj.ActiveDocument.Tables.Add(WordObj.Selection.Range
NumRows:=3, NumColumns:=2

The problem is that I cannot get the entire table to align to th
center. The only thing that I could find was
[code:1:c5c6bb0bc0].Rows.Alignment
wdAlignRowCenter[/code:1:c5c6bb0bc0

But this only aligns the text to the center, not the entire table. I
there a simple way to align the entire table to the center

Thanks
~R
 
IIRC the way to do this depends on the version of Word you're using. I'd
start to learn how by launching Word with a blank document and creating
a little table. Then I'd start Word's macro recorder, do whatever's
necessary to align the table, stop the recorder and examine the code it
had generated.

On Fri, 22 Jul 2005 11:35:56 -0500,
I created a Word Table using:
WordObj.ActiveDocument.Tables.Add(WordObj.Selection.Range,
NumRows:=3, NumColumns:=2)

The problem is that I cannot get the entire table to align to the
center. The only thing that I could find was:
[code:1:c5c6bb0bc0].Rows.Alignment =
wdAlignRowCenter[/code:1:c5c6bb0bc0]

But this only aligns the text to the center, not the entire table. Is
there a simple way to align the entire table to the center?

Thanks!
~R~
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top