computerg33k
asked on
Word Table + Merge Cells + vb.net
I have created a word document and a table within that document. the table is 2 rows by 6 columns. I need to merge cells 1,2 to 1,6 (so the cell will expand from cells 1,2 to 1,3 to 1,4 to 1,5 and finally to 1,6). There is a function that looks like this:
oTable.Cell(1, 2).Merge(oTable.Cell(1, 6))
but this will delete cells 1,3 1,4 1,5 and 1,6 so instead of the table being 2,6 the table is 1,2 on the first row and 1,6 on the second row.
I want the table to look like this:
Case Caption | Defendents Vs. Plantiffs (this is one string--don't want to break it up)
Client | Client's Name | File Num | File Number | Case Num |Case Number
Notice the two cells on row 1 and the 6 cells on row 2.
oTable.Cell(1, 2).Merge(oTable.Cell(1, 6))
but this will delete cells 1,3 1,4 1,5 and 1,6 so instead of the table being 2,6 the table is 1,2 on the first row and 1,6 on the second row.
I want the table to look like this:
Case Caption | Defendents Vs. Plantiffs (this is one string--don't want to break it up)
Client | Client's Name | File Num | File Number | Case Num |Case Number
Notice the two cells on row 1 and the 6 cells on row 2.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
oTable.Range.Cells(2).Merg