Macro question for tables

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to make a macro that will go through an entire document and center
every table it finds to the page. I can make one that does one at a time but
is there a way to do them all at once?
 
Dim pTable as Word.Table

For each pTable in ActiveDocument.Tables
pTable.Rows.Alignment = wdAlignRowCenter
Next
 
FANTASTIC! Works perfect. Thank you Jezebel!!!

Jezebel said:
Dim pTable as Word.Table

For each pTable in ActiveDocument.Tables
pTable.Rows.Alignment = wdAlignRowCenter
Next
 
Back
Top