A
Alistair F
I have used VBA to manipulate Word tables for some time and have always used
the SetWidth method to do so. One limitation of this method is that I can't
set the width to a value less than 12 points. The PreferredWidth method
allows smaller values but I can't get method to work consistently. I have
code that sets some columns to a width of 3 points (these are 'spacer'
columns) and this works the first time the code is called but subsequent
calls do not work properly - columns do not resize at all. When I step
through the code using F8 the code works but when it runs freely it doesn't.
One thing I've noticed is that the PreferredWidth of the table is initially
not set but at some point when the code is running it is set and this value
seems to override individual column widths.
I'd appreciate advice on what to try next.
Thanks in anticipation.
the SetWidth method to do so. One limitation of this method is that I can't
set the width to a value less than 12 points. The PreferredWidth method
allows smaller values but I can't get method to work consistently. I have
code that sets some columns to a width of 3 points (these are 'spacer'
columns) and this works the first time the code is called but subsequent
calls do not work properly - columns do not resize at all. When I step
through the code using F8 the code works but when it runs freely it doesn't.
One thing I've noticed is that the PreferredWidth of the table is initially
not set but at some point when the code is running it is set and this value
seems to override individual column widths.
I'd appreciate advice on what to try next.
Thanks in anticipation.