Add Rows After current row???

P

Phil

Is it possible to add rows after the current row, like you can from the menu option in Word? The Rows..Add() method only allows you insert before the specified row

Thanks

Phil
 
J

JGM

Hi Phil,

It sure is...
Place your cursor in the last cell of the last row and hit TAB.

Cheers!

--
_______________________________________
Jean-Guy Marcil
(e-mail address removed)

Phil said:
Is it possible to add rows after the current row, like you can from the
menu option in Word? The Rows..Add() method only allows you insert before
the specified row.
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Hi Phil,

The following code will add a row after the row in which the selection is
located:

Selection.Tables(1).Rows.Add
BeforeRow:=Selection.Tables(1).Rows(Selection.Information(wdEndOfRangeRowNumber)
+ 1)


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 
K

Klaus Linke

Phil said:
Is it possible to add rows after the current row, like you can from the
menu option in Word?

With the cursor at the end of the row, hit Return (... just learned that
trick from Terry Farrell).
The Rows..Add() method only allows you insert before the specified row.

In a macro, you can use .InsertRowsBelow

Regards,
Klaus
 

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