Is there ANYWAY to determine the width of a table that has merged columns?
Jean-Guy showed a way to get the table width for a table without merged
columns, however I have many users that like to create tables with merged
columns.

The preferredwidth property returns 99999 if the table is merged and the
column width returns an error.

I am copy and pasting the merged table as a nested table and I need to know
if the table is wider than 1 column in page layout to auto size the new table
to either fit in 1 column or spread it across the whole page.

Jerry

Re: Anyway to get Preferredwidth for a table with merged columns? by Stefan

Stefan
Mon Oct 31 02:21:11 CST 2005

Wouldn't AutoFit work for you?

To make a table fit the width of its container:

<TableObject>.AutoFitBehavior wdAutoFitWindow

And to restore a fixed width:

<TableObject>.AutoFitBehavior wdAutoFitFixed

--
Stefan Blom
Microsoft Word MVP


"JWS315" wrote in message
news:552637B2-011E-4417-88AF-E59837721C00@microsoft.com...
> Is there ANYWAY to determine the width of a table that has merged
columns?
> Jean-Guy showed a way to get the table width for a table without
merged
> columns, however I have many users that like to create tables with
merged
> columns.
>
> The preferredwidth property returns 99999 if the table is merged and
the
> column width returns an error.
>
> I am copy and pasting the merged table as a nested table and I need
to know
> if the table is wider than 1 column in page layout to auto size the
new table
> to either fit in 1 column or spread it across the whole page.
>
> Jerry