A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

adding multiple rows



 
 
Thread Tools Display Modes
  #1  
Old May 10th, 2008, 05:11 PM posted to microsoft.public.word.tables
Trevor Wright
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  
Old May 10th, 2008, 06:12 PM posted to microsoft.public.word.tables
Jay Freedman
external usenet poster
 
Posts: 9,488
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  
Old May 10th, 2008, 11:24 PM posted to microsoft.public.word.tables
Trevor Wright
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
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.