View Single Post
 
Old 03-18-2024, 03:07 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,166
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Try this version
Code:
Sub TableRowAtLeast()
  Dim iSize As Long, aCell As Cell, aTbl As Table
  For Each aTbl In ActiveDocument.Tables
    For Each aCell In aTbl.Range.Cells
      If aCell.HeightRule = wdRowHeightExactly Then
        iSize = aCell.Height
        aCell.HeightRule = wdRowHeightAtLeast
        aCell.Height = iSize
      End If
    Next aCell
  Next aTbl
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote