Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Tables / May 2008

Tip: Looking for answers? Try searching our database.

adding multiple rows

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Trevor Wright - 10 May 2008 17:11 GMT
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.
Signature

Trevor Wright

Jay Freedman - 10 May 2008 18:12 GMT
>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.
Trevor Wright - 10 May 2008 23:24 GMT
>>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,
[quoted text clipped - 4 lines]
>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.
Signature

Trevor Wright


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.