Computer Forum Forum Index
Register  FAQ Profile Log in to check your private messages Log in Register 

any quick way to alternate row shading in table?

 
Post new topic   Reply to topic    Computer Forum Forum Index -> microsoft word vba general
View previous topic :: View next topic  
Author Message
Gary Hillerson
Guest





PostPosted: Thu Dec 20, 2007 6:49 pm    Post subject: any quick way to alternate row shading in table? Reply with quote

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
Back to top
Google
Sponsor





PostPosted: Thu Dec 20, 2007 6:49 pm    Post subject: Advertisement

Back to top
fumei via OfficeKB.com
Guest





PostPosted: Thu Dec 20, 2007 8:29 pm    Post subject: Re: any quick way to alternate row shading in table? Reply with quote

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?

Gary Hillerson wrote:
Quote:
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

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200712/1
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Computer Forum Forum Index -> microsoft word vba general All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Computer Forum