vb word center table
Posted on 2006-04-24
I have a vb app that writes to a word document.
I make a table in it and for some reason, every time I give the table a width, it is pushed way over to the right.
I want to center the table.
Also, how do you change the table so that the lines appear when printing?
Set wdRange = .ActiveDocument.Bookmarks("myBookMark").Range
.ActiveDocument.Bookmarks.add "myBookMark", wdRange 'readd bookmark
Set wdTable = .ActiveDocument.Tables.add(wdRange, 1, 3)
wdTable.PreferredWidth = 600