Word tables

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

It seems that all the tables in my docs have the table set to: "Allow rows to
break across page."
As there are hundreds of tables, I'd rather like to be able to turn this
setting off in one go, instead of individually. Does anyone know how to do
this?
Cheers,
 
Paste this into a code module, click anywhere in it, and press F5 ---

Sub Macro1()

Dim pTable As Word.Table

For Each pTable In ActiveDocument.Tables
pTable.Rows.AllowBreakAcrossPages = False
Next
MsgBox "Finished"

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top