Center Table in Word Through Excel

O

Orion Cochrane

I have an application in Excel that kicks out a report in Word. It is
basically one table with some data. What I would like is to center that table
on the page, but I cannot find how to do it through VBA. Although this is in
Excel, the properties I will need are from Word. So, when responding, please
preface your code with:

appWD.ActiveDocument

TIA.
 
J

Jay Freedman

I have an application in Excel that kicks out a report in Word. It is
basically one table with some data. What I would like is to center that table
on the page, but I cannot find how to do it through VBA. Although this is in
Excel, the properties I will need are from Word. So, when responding, please
preface your code with:

appWD.ActiveDocument

TIA.


appWD.ActiveDocument.Tables(1).Rows.Alignment = wdAlignRowCenter
 
O

Orion Cochrane

Big thanks. That was the last step in my reporting process. My application
will now be complete!
 

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