banner



how to add more rows to a table in word

Do you have ad-blocking software enabled? While I respect your right to do so, your donations and the minimal advertisements on this site help to defray internet and other costs of providing this content. Please consider excluding this website from blocking or turning off the blocker while browsing this site.

The information, illustrations and code contained in my "Microsoft Word Tips" are provided free and without risk or obligation.

Click to acces PayPal Verification Service Click to acces PayPal Verification Service

However, the work is mine. If you use it for commercial purposes or benefit from my efforts through income earned or time saved then a donation, however small, will help to ensure the continued availability of this resource.

If you would like to donate, please use the appropriate donate button to access PayPal. Thank you!


The purpose of this Microsoft Word Tips & Microsoft Word Help page is to provided and explain an automated method that you can use to insert or append new rows or columns in a Word table, while duplicating the content of the selected row/column in the new column.  This feature will be useful when you have a table that your document user needs to list or define several items with similar properties.  For example, consider the following table, where the document user is asked to provide information on his grandchildren:

The table contains seven cells.  Each cell contains for one or more content controls for entering variable data.  I've included demonstrations of the seven content controls available in Word 2010 for displaying data; rich text, plain text, picture, combo box, dropdown list, date and checkbox.  Just for the purpose of demonstration, the cells containing the combo box and dropdown list also contain fixed text.

Like the caption says, easy for me.  However, other users may require two, three, or even two dozen table rows to provide the information requested.  As the document designer, you are faced with the decision of how many rows to provide.  Not enough can frustrate your users, and too many can look unprofessional or add work (deleting unused rows) for you or the document users.

You probably won't find much enthusiasm for providing just a couple of rows and asking your users to copy and paste new rows if required.  In this case, unless your users are Word power users and knowledgeable of certain buggy behavior Word, you certainly won't get good results!

Here is why.  Each of the content controls in the demonstration table have their property "Content control cannot be deleted" set.  This setting results in some odd behavior in Word.  To demonstrate, perform the following:

  • Add new 5 row x 5 column table to a Word document.
  • In the center cell, add a plain text content control and set the set the control property "Content control cannot be deleted."
  • With the cursor in the cell containing the content control, click the "Table Tools Layout" tab and then click either "Insert Above, Insert Below, Insert Right or Insert Left" in the "Row & Columns" group.  Notice that no row or column is inserted.  This is clearly a bug! Whenever a table contains a content control that cannot be deleted, the user cannot insert a column anywhere in the table, and the (row) Insert Above and Insert Below command do not function if the selected row contains a locked content control (red area in illustration below).

While users can't insert rows or columns, copy and paste will still work.

  • Fill in some information in the content control.
  • Copy the row then paste as a new row in the table.
  • Now you have a perfect duplicate of the copied row.  Your user will likely need to change the data in the new row which would certainly add to the chance of error.
  • Also notice that the pasted content control in the new row does not have the "Content control cannot be deleted" property set.  Pasting copies of content controls does not ensure that the properties are the same.

What you and your user really need is an automated method of appending or inserting a new row or columns, complete and ready to be filled out afresh by the user.

While unlikely to be as useful and not illustrated here, I've also developed an automated process to insert or append a new column to the right of a selected table column.  Both processes are fully demonstrated in the demonstration document that you can download:
Add Table Row\Column with Content.

To facilitate inserting or appending rows, I've added a command buttons to the quick access toolbar (QAT) in the document.  The user simply places the cursor in the table and clicks the command button to insert or append a row in the table.

Additionally, I've added code to the document ContentControlOnEnter event that queries the user if a new row is needed when the user enters the content control located in the last cell of the last table row.  If the user selects yes, the new row is automatically appended in the table.

Site Note iconNote: This tips page, illustrations and examples were developed using Word 2010. It is wholly functional with Word 2013 and 2007.  Note: The checkbox controls demonstrated in Word 2010 will be converted to rich text controls and lose their ability to be toggled between states.

That's it! I hope you have found this tips page useful and informative.

how to add more rows to a table in word

Source: https://gregmaxey.com/word_tip_pages/add_table_row_with_content.html

Posted by: carterponseety.blogspot.com

0 Response to "how to add more rows to a table in word"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel