Shortening a table

J

John Marshall, MVP

I have a table I would like to reuse, so how do I shorten it back to three
rows so the table only includes the titles?

I could do it with a For loop, but there must be a simpler way.

John... Visio MVP
 
G

Graham Mayor

If you want to re-use the table, wouldn't it be simpler just to save the
edited table as an autotext or autocorrect entry? You then don't need the
macro. Just select the unwanted rows and delete them the once.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
J

John Marshall, MVP

Thanks, Graham.

The table is a table of Notes and is populated by a macro that searches for
a specific style and then harvests various pieces of information from the
paragraph. The current process is to delete the table and build it from
scratch. Autotext is a possiblity, but I am not very excited at the fun that
is required for maintaining the Autoext entries. I'll play around with it
and see what happens.

John... Visio MVP
 
J

John Marshall, MVP

What I was looking for was something like:

Selection.Rows(4).Select
Selection.EndOf unit:=wdTable, Extend:=wdExtend
Selection.Rows.Delete

John... Visio MVP
 
Top