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?

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

Jonathan
Wed Dec 10 16:00:07 CST 2003

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

--
Regards
Jonathan West - Word MVP
http://www.multilinker.com
Please reply to the newsgroup

"VBA Coder" <noone@account.com.NO_SPAM.> wrote in message
news:eh2EQg2vDHA.3436@tk2msftngp13.phx.gbl...
> 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?
>
>


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

VBA
Wed Dec 10 20:58:39 CST 2003

Thank you,

That would explain it.


"Jonathan West" <jwest@mvps.org> wrote in message
news:OxmKDj2vDHA.1872@TK2MSFTNGP09.phx.gbl...
> You can't do this in Word 97 because "nested tables" was a new feature
> introduced in Word 2000
>
> --
> Regards
> Jonathan West - Word MVP
> http://www.multilinker.com
> Please reply to the newsgroup
>
> "VBA Coder" <noone@account.com.NO_SPAM.> wrote in message
> news:eh2EQg2vDHA.3436@tk2msftngp13.phx.gbl...
> > 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?
> >
> >
>