Hello,
I have written(with help from this discussion group) a macro in Excel which directs the opening of a Word template document and the placement of a variety of information from an Excel workbook at bookmarks in that document.
At one of those bookmarks, a table is created, placed, and its cells filled with the proper information. (This cannot be done in the template because the number of rows in the table is not known until the macro counts non-blank rows in a worksheet.)
All this works fine. However, the table as formed has columns of equal width, but I need the columns to be different preset widths. I assume I want a Set statement, but I'm confused by all the layers of properties, I think.
For example, do the different table rows need to be named or can I just use numbers? And how do I specify the units of the width?
Set ActiveDocument.Tables("Tablename").Rows(1).Width=0.5 inches
That can't be right But what is?
DJC
I have written(with help from this discussion group) a macro in Excel which directs the opening of a Word template document and the placement of a variety of information from an Excel workbook at bookmarks in that document.
At one of those bookmarks, a table is created, placed, and its cells filled with the proper information. (This cannot be done in the template because the number of rows in the table is not known until the macro counts non-blank rows in a worksheet.)
All this works fine. However, the table as formed has columns of equal width, but I need the columns to be different preset widths. I assume I want a Set statement, but I'm confused by all the layers of properties, I think.
For example, do the different table rows need to be named or can I just use numbers? And how do I specify the units of the width?
Set ActiveDocument.Tables("Tablename").Rows(1).Width=0.5 inches
That can't be right But what is?
DJC