Microsoft Word Table Automation - column widths not consistent - VB Script

Screenshot: https://www.screencast.com/t/andGYDsex  notice one table is less wide than the other

The following code removes an unwanted column

                              for each trw in tbl.rows
                                    if trw.cells.count > 6 then
                                          trw.cells(7).Delete
                                                
                                          
                                    end if
                                    
                              next


The result is randomly reducing some of the tables widths while not reducing the widths of others.
How can I make this consistent?
maxdbaseAsked:
Who is Participating?
 
Rgonzo1971Commented:
Hi,

Are you sure the PreferredWidth and AllowAutoFit properties are the same in the tables?

Regards
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.