Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
Trevor Wright Trevor Wright is offline
external usenet poster
 
Posts: 2
Default adding multiple rows

Could anyone tell me how to add/insert more than one new row (ie a
specified number of new rows) in an existing table please? (Word 2007,
Win XP). Thanks.
--
Trevor Wright
  #2   Report Post  
Posted to microsoft.public.word.tables
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default adding multiple rows

On Sat, 10 May 2008 17:11:23 +0100, Trevor Wright
wrote:

Could anyone tell me how to add/insert more than one new row (ie a
specified number of new rows) in an existing table please? (Word 2007,
Win XP). Thanks.


Select a number of existing rows, then go to the Table Tools Layout tab of the
ribbon and click either Insert Above or Insert Below. An equal number of rows
will be added above or below the selected ones.

If you want to use a macro, this one will add as many rows as you tell it to,
even if it's more than already exist (see
http://www.gmayor.com/installing_macro.htm if needed):

Sub AddRowsToEnd()
Dim strRows As String
Dim nRows As Long, i As Long
Dim Tbl As Table

If Not Selection.Information(wdWithInTable) _
Then Exit Sub

strRows = InputBox("Number of rows to add", _
"Add rows to end of table")
If Len(strRows) = 0 Then Exit Sub ' canceled

nRows = Val(strRows)
If nRows 0 Then
Set Tbl = Selection.Tables(1)
For i = 1 To nRows
Tbl.Rows.Add
Next
Set Tbl = Nothing
End If
End Sub

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
  #3   Report Post  
Posted to microsoft.public.word.tables
Trevor Wright Trevor Wright is offline
external usenet poster
 
Posts: 2
Default adding multiple rows

In message , Jay Freedman
writes
On Sat, 10 May 2008 17:11:23 +0100, Trevor Wright
wrote:

Could anyone tell me how to add/insert more than one new row (ie a
specified number of new rows) in an existing table please? (Word 2007,
Win XP). Thanks.


Select a number of existing rows, then go to the Table Tools Layout
tab of the
ribbon and click either Insert Above or Insert Below. An equal number of rows
will be added above or below the selected ones.


It seems a bit convoluted! A simple right-click in WordPerfect.

Nevertheless, many thanks for your prompt and clear reply.
--
Trevor Wright
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Multiple Rows in Word 2007 ansonee Tables 2 December 16th 07 04:29 AM
Adding rows to a table Peter Guest Tables 2 November 25th 06 07:49 AM
Adding rows to a table Peter Guest New Users 3 November 22nd 06 08:01 PM
Rows adding to Tables Alex Mackenzie Microsoft Word Help 2 January 26th 06 05:41 PM
Adding multiple rows to a table in Word? Iron Mt Library Guy Microsoft Word Help 3 February 5th 05 12:08 AM


All times are GMT +1. The time now is 03:38 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"