Clear Contents Of Table In Word For Mac

Remove all empty rows and columns from tables with one click. Kutools for Word provides you the most convenient way to remove all empty rows and columns from tables in document. You just need to click once, and Kutools for Word' s Delete Rows/Columns utility will remove all empty rows and columns from all or selecetd tables for you quickly. In my version of MS Word, if the cell data is highlighted and cut the cells remain intact, but the data is removed. You can cut data in several ways: using the scissors icon on the ribbon at the top of the page, or + X on a PC + X on a mac; right click the mouse and select cut from the pop-up menu.

Table of Contents (Formal design) Add a chapter index to your book or business document with this table of contents template. Separated by chapter, section, and subsection, this table of contents Word template provides a clear roadmap of your thinking for your readers.

How to remove empty rows and columns from tables in Word?

How can you remove the all empty rows and columns from tables in Word? This tutorial will show you several ways to remove empty rows and columns from tables in Word document.

Remove all empty rows and columns from tables with one click

Manually remove all empty rows and columns from tables

Microsoft Office Word does not provide a convenient way to remove empty rows and columns, and you need to remove them by manually select each empty row and column and then delete them one by one.

Step 1: Select the empty row or empty column you want to delete. See screenshot:

Step 3: Under Table Tools, click the Layout Tab;

Step 4: In the Rows & Columns group, click Delete Rows or Delete Columns.

Remove all empty rows and columns from tables by using VBA code

Hyperlink table of contents in word

The Macro Function of Word provides a much more convenient way to remove all empty rows and columns from tables in document. You can remove all empty rows and columns as follows.

Step 1: Press “Alt-F11” to open the Microsoft Visual Basic for Application window;

Step 2: Click Module on the Insert tab, copy and paste the following VBA code into the Module window;

Step 3: Then click Runbutton to apply the VBA.

The VBA code to remove all empty rows and columns from tables:

Sub DeleteEmptyTablerowsandcolumns()
Application.ScreenUpdating = False
Dim Tbl As Table, cel As Cell, i As Long, n As Long, fEmpty As Boolean
With ActiveDocument
For Each Tbl In .Tables
n = Tbl.Columns.Count
For i = n To 1 Step -1
fEmpty = True
For Each cel In Tbl.Columns(i).Cells
If Len(cel.Range.Text) > 2 Then
fEmpty = False
Exit For
End If
Next cel
If fEmpty = True Then Tbl.Columns(i).Delete
Next i
Next Tbl
End With
With ActiveDocument
For Each Tbl In .Tables
n = Tbl.Rows.Count
For i = n To 1 Step -1
fEmpty = True
For Each cel In Tbl.Rows(i).Cells
If Len(cel.Range.Text) > 2 Then
fEmpty = False
Exit For
End If
Next cel
If fEmpty = True Then Tbl.Rows(i).Delete
Next i
Next Tbl
End With
Set cel = Nothing: Set Tbl = Nothing
Application.ScreenUpdating = True
End Sub

Remove all empty rows and columns from tables with one click

Kutools for Word provides you the most convenient way to remove all empty rows and columns from tables in document. You just need to click once, and Kutools for Word' sDelete Rows/Columns utility will remove all empty rows and columns from all or selecetd tables for you quickly.

Word Table Of Contents Template

Kutools for Word,with more than 100 handy functions, makes your jobs easier.

After installing Kutools for Word, please do as below:(Free Download Kutools for Word Now!)

1. Click Kutools Plus > Delete Rows/Columns on the Table pane.

Delete Table Of Contents Word

2. Then a dialog pops out, choose the scope that you want to remove tables from in the Look in section, then check Row option and Blank row option, or check Column option and Blank row option as you need. If you want to delete all blank rows and columns, you need to apply this operation twice.

Clear Contents Of Table In Word For Macro

Now a dialog pops out to remind you how many tables have been dealed with, click OK to close, and the blank rows and columns have been removed from tables.

Tip.If you want to remove blank rows from Excel sheet, the Delete Blank Rows utility of Kutools for Excel can help you.

Clear Contents Of Table In Word For Mac

Recommended Word Productivity Tools

Kutools For Word - More Than 100 Advanced Features For Word, Save Your 50% Time

  • Complicated and repeated operations can be done one-time processing in seconds.
  • Insert multiple images across folders into Word document at once.
  • Merge and combine multiple Word files across folders into one with your desired order.
  • Split the current document into separate documents according to heading, section break or other criteria.
  • Convert files between Doc and Docx, Docx and PDF, collection of tools for common conversions and selection, and so on...
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    You just saved me a zillion hours of frustration, THANK YOU!
  • To post as a guest, your comment is unpublished.
    u know you can just resize the table right? just filter and sort your data to top check how many rows have data, click table tools and the click resize and adjust the last number to whatever you need OR go to the bottom of the table the very last cell and use the tine blue triangle to drag and resize,
    • To post as a guest, your comment is unpublished.
      Except I have multiple page document with a table with varying information in each. Furthermore, it is a merge document so different each week. I need an automated method :)
  • To post as a guest, your comment is unpublished.
    Hi, the macro is working, BUT:
    After deleting all rows, all the columns of the tables with empty rows open up very wide.
    How can i fix the code so that this does not happens?
    I am using Office 2016.
    Thank you!
  • To post as a guest, your comment is unpublished.
    Hi All,
    I am looking for function in word wherein, if I remove specific word then it should remove that row as well.
  • To post as a guest, your comment is unpublished.
    Thanks for the code, really useful.
  • To post as a guest, your comment is unpublished.
    Is there a macro that will delete a row if only one of the cells in that row is empty or contains a zero?
  • To post as a guest, your comment is unpublished.
    thanks for the macro, it was really helpful..
  • To post as a guest, your comment is unpublished.
    Thanks for the macro. It worked like a charm!
  • To post as a guest, your comment is unpublished.
    Hello developers - I have this macro which sits in a button and when clicked (the macro) removes the table directly above the button. Can this be fixed so that the macro only works once? Ie. if there are 2 tables in the document only 1 is deleted - then the macro ceases to work... can you advise?
    Sub tableDelete()
    '
    ' tableDelete Macro
    'Dim nTables As Integer
    nTables = ActiveDocument.Tables.Count
    ActiveDocument.Tables(nTables).Delete
    '
    End Sub
    • To post as a guest, your comment is unpublished.
      [quote name='Andy Harris']Hello developers - I have this macro which sits in a button and when clicked (the macro) removes the table directly above the button. Can this be fixed so that the macro only works once? Ie. if there are 2 tables in the document only 1 is deleted - then the macro ceases to work... can you advise?
      Sub tableDelete()
      Dim nTables As Integer
      nTables = ActiveDocument.Tables.Count
      ActiveDocument.Tables(nTables).Delete
      End Sub[/quote]
      Please try to use this VBA to delete all tables from current document in Word.
      [i]Sub tableDelete()
      Dim aTable As Table
      For Each aTable In ActiveDocument.Tables
      aTable.Delete
      Next
      End Sub[/i]

Step 1:
Open your document and locate the Home tab.

Clear Contents Of Table In Word For Mac Os

Step 2:
Highlight the first heading and select Heading 1.

Hint: Consistently formatting your headers will ensure your table of contents is properly paginated.

Step 3:
Follow Step 2 to identify all remaining headings in the document. Once you have identified all of the headings in the document, place your cursor at the top of the document and click on the Insert tab, then scroll to find Index and Tables.

Step 4:
In the Index and Tables window, select Table of Contents and choose your format from the menu on the left. Once you have selected your format, click OK.

Step 5:
A table of contents will be inserted into the top of your document. If you wish for the table of contents to be on a separate page, place your cursor just below the table of contents and click on the Insert tab. Select Page Break from the Break menu.