View Single Post
  #1   Report Post  
Posted to microsoft.public.word.tables
Orsetto
 
Posts: n/a
Default VBA column width problem


Hi, im formatting a lot of tables using VBA.
I finally got this to work after borrowing some code here and there
(VBA newbie here).

But I've still got a problem. Not all the tables in the document are
the same, some have merged cells etc.
So i get the run-time error "cannot access individual columns in this
collection because the table has mixed cell widths"

Is there a way to identify these tables using code
so i can either
- format them like the other tables
- or get them out of the code so this error won't pop-up anymore.

(I use column commands for aligning the first column to the left and
the rest to the right, and for autofit for all but the first column)
Thanks..
p.s. Why doesn't WORD allow to select all tables and apply a
formatting? That is just really stupid. This allready cost me al lot of
time.


--
Orsetto