Table alignment property?

K

Kevin B

I have a word document in which I've created a table. I open the table
properties and select the table alignment of center or right.

In VBA the table does not seem to have any alignment property to read
or write. I see nothing in the object browser, nor is there a property
in the VBA reference. I can't determine how Word is setting the
alignment of tables. Does it put it in a frame? Anyone?

Dim ojTable As Word.Table
Dim objRow As Word.Row
Dim objCell As Word.Cell
'(vobjDoc is passed in and is of type Word.Document)

For Each objTable In vobjDoc.Content.Tables
objTable.?
Next
 
T

Tony Jollans

It's Table *rows* that have to be aligned ..

objTable.Rows.Alignment = wdAlignRowCenter
 

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

Top