Word 97: How to Insert a Table into an Existing Table Cell

V

VBA Coder

Does anyone know how I can insert a New Table into a cell of another table?

In Word 2000, I can issue the following code when I am within a cell of a
table and the table gets inserted correctly:

Dim rRange As Range, myTable As Table
With Selection
Set rRange = .Range
Set myTable = rRange.Tables.Add(Range:=.Range, NumRows:=2,
NumColumns:=4)
End With

However, in Word97, I am not able to do this. I get an error telling me that
a table already exists. Has anyone had any success with being able to insert
a new table into a cell of an existing table without doing a lot of cell/row
inserts and cell merges?
 
J

Jonathan West

You can't do this in Word 97 because "nested tables" was a new feature
introduced in Word 2000
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top