View Single Post
 
Old 08-08-2017, 09:29 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Preferred width is a cell property, so you need to apply it to the cells of the table, as below. I have not checked the rest of your code.

Code:
    With wdDoc
        For Each pT In wdDoc.Tables
            pT.Range.Cells.PreferredWidthType = wdPreferredWidthAuto
            pT.Range.Cells.PreferredWidth = 0
        Next
    End With
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote