Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding single Columns in a Word-Table-Row

Status
Not open for further replies.

jacom

Programmer
Mar 26, 2001
6
0
0
DE

I wanted to create a Word-Table with several columns and
a dynamic number of rows in each column in a Visual-Basic-
Application .

But every attempt to do that created a completely new Row in the table . For instance if the table had 4 columns then a new row was appended to the table including 4 cells.

I used the following command to add a new Cell to a column:
tb.Columns(col).Cells.Add

Is it possible to append a cell to a column without creating a complete new row, so that the table can exist of a few of columns each of it including a different number of rows ?
 
I'm not exactly sure what you are asking, but. . .

The very nature of a table is such that adding a row will add a cell to every existing column. For most applications, that isn't a problem. If for some reason it is a problem for what you are trying to do, consider formatting the borders of the unwanted cells to make them invisible.

More info on what the issue is might lead to other suggestions as well.

Let me know if this is helpful!

VBAjedi [swords]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top