Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2007

Tip: Looking for answers? Try searching our database.

any quick way to alternate row shading in table?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gary Hillerson - 20 Dec 2007 18:49 GMT
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
fumei - 20 Dec 2007 20:29 GMT
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?

>I want to create tables via vba code with a header row, and then every
>other data row will feature different shading.
[quoted text clipped - 5 lines]
>thanks in advance,
>   gary

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.