O
Orsetto
Hi, im formatting a lot of tables using VBA.
I finally got this to work after borrowing some code here and ther
(VBA newbie here).
But I've still got a problem. Not all the tables in the document ar
the same, some have merged cells etc.
So i get the run-time error "cannot access individual columns in thi
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 an
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
formatting? That is just really stupid. This allready cost me al lot o
time
I finally got this to work after borrowing some code here and ther
(VBA newbie here).
But I've still got a problem. Not all the tables in the document ar
the same, some have merged cells etc.
So i get the run-time error "cannot access individual columns in thi
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 an
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
formatting? That is just really stupid. This allready cost me al lot o
time