![]() |
#1
|
|||
|
|||
![]()
I am using the commands :
Selection.Tables(1).Columns(1).PreferredWidth = CentimetersToPoints(6) Selection.Tables(1).Columns(2).PreferredWidth = CentimetersToPoints(2) Selection.Tables(1).Columns(1).PreferredWidth = CentimetersToPoints(6) Selection.Tables(1).Columns(2).PreferredWidth = CentimetersToPoints(1) for my 4 column table. But I get the error message : Cannot access individual columns in this collection because the table has mixed cell widths. How do I adjust my column widths ? (Strangely, the above commands work on the first run, but it crashes in subsequent runs, even though I clear the document) Thanks ! |
#2
|
|||
|
|||
![]()
Try looking at .setwidth. Do you know you can look up the keywords by placing the cursor on the keyword and pressing f1.
If the table has cells that have been split or merged along the column then its likely that this command will fail. |
#3
|
|||
|
|||
![]()
Thanks. (And, yes the table had been merged...)
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Column Width keeps changing | alsmith | Word Tables | 1 | 05-25-2013 02:09 AM |
![]() |
OpfinnarJocke | Word Tables | 1 | 09-22-2012 04:03 AM |
![]() |
Guy Roth | Excel | 1 | 03-20-2012 05:52 AM |
![]() |
markg67 | Word | 2 | 06-07-2010 07:40 PM |
how do i adjust column to chosen width | hill0093 | Word | 0 | 09-19-2009 05:24 AM |