R
Rhino
I'm trying to create a series of tables in a VBA macro in Word 2002. Each of
the 6 tables is laid out the same way and each table has only two rows; the
first of those rows has 4 columns and the second row has only one column.
I have no problems creating and populating the first table but when I get to
the second table, rather than being created _after_ the first table, it is
being created _WITHIN_ the first table: a third row is created in the first
table and the second table is created on that row. Then the third table gets
created within the second and so on.
Once I've finished populating the cells of the first table, how do I make
the macro create the second table so that it is AFTER the first table, not
within it?
I've tried recording a macro to learn the correct code but I can't seem to
end a table while the macro recorder is running.
The other day, I was having a comparable problem ending a list - once I'd
started a list, all following content appeared in the list - and was told to
use Selection.Range.ListFormat.RemoveNumbers. I've looked for something
comparable to end a table and hoped to find something like
Selection.Range.TableFormat.EndTable but no such thing exists.
What's the trick I need to know? It certainly isn't intuitive, whatever it
is!
the 6 tables is laid out the same way and each table has only two rows; the
first of those rows has 4 columns and the second row has only one column.
I have no problems creating and populating the first table but when I get to
the second table, rather than being created _after_ the first table, it is
being created _WITHIN_ the first table: a third row is created in the first
table and the second table is created on that row. Then the third table gets
created within the second and so on.
Once I've finished populating the cells of the first table, how do I make
the macro create the second table so that it is AFTER the first table, not
within it?
I've tried recording a macro to learn the correct code but I can't seem to
end a table while the macro recorder is running.
The other day, I was having a comparable problem ending a list - once I'd
started a list, all following content appeared in the list - and was told to
use Selection.Range.ListFormat.RemoveNumbers. I've looked for something
comparable to end a table and hoped to find something like
Selection.Range.TableFormat.EndTable but no such thing exists.
What's the trick I need to know? It certainly isn't intuitive, whatever it
is!