any quick way to alternate row shading in table?

G

Gary Hillerson

I want to create tables via vba code with a header row, and then every
other data row will feature different shading.

I can write a function that walks through the table and does that, but
is there any way to set the shading properties in the table to make it
happen automatically?

thanks in advance,
gary
 
F

fumei via OfficeKB.com

Well, there are Table Styles (Word 2002 and later) that do this, but IMO they
are a little flaky and can have unforseen challenges. A function that does
it should run pretty fast. How quick do you need it?
 
Top