#1
|
|||
|
|||
Creating "odd shaped" Table
How do I create a single table (called TableA, for example) with a varying number of column assigned to different rows ?
For example, row 1 has one column; row 2 has two coumns; row 3 has one column. I tried using Set ObjectCol.Add , but it just creates a 3X2 table. Thanks ! |
#2
|
|||
|
|||
You need to make a normal table first, then merge cells to make the structure you want.
Code:
Dim oTbl As Table Set oTbl = ActiveDocument.Tables.Add(Range:=Selection.Range, NumRows:=3, NumColumns:= _ 2, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _ wdAutoFitFixed) oTbl.Rows(1).Cells.Merge oTbl.Rows(3).Cells.Merge |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to edit the "Format" and the "show level" of an EXISTING table of content? | Jamal NUMAN | Word | 2 | 08-14-2011 10:46 AM |
"Table of content" based on "Normal Style" behavior!!!! | Jamal NUMAN | Word | 4 | 07-08-2011 04:12 AM |
How to know the "format" of the "table of content"? | Jamal NUMAN | Word | 2 | 07-08-2011 02:24 AM |
How to have colons (:) in the "Table of content" but to be hidden in the "Heading"? | Jamal NUMAN | Word | 0 | 06-26-2011 04:53 PM |
Why the "table of contents" doesn't take the same format of the "headings"? | Jamal NUMAN | Word | 5 | 06-15-2011 10:14 AM |