Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / July 2005

Tip: Looking for answers? Try searching our database.

Aligning a Word Table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Broadwaybaby8 - 22 Jul 2005 17:35 GMT
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
John Nurick - 23 Jul 2005 10:30 GMT
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.

>I created a Word Table using:
>WordObj.ActiveDocument.Tables.Add(WordObj.Selection.Range,
[quoted text clipped - 10 lines]
>Thanks!
>~R~

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.