View Single Post
  #2   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi YossiK,

Yes, this would require a macro. The best place to get help would be one
of the word.vba newsgroups, such as word.vba.beginners. You should
mention exactly which shading you'd like to use? Maybe record a macro
applying the shading to a row, so that one can see the exact syntax
required :-)

Do the same for the border (and mention whether you're defining it above
or below the criteria row). Then all someone will need to do for you is
show you how to loop through the rows and test the values.

You should also mention which version of Word you're using.

I have a table that looks something like the following:

Code:
--------------------

ID NAME SHIPPING ITEM
1 Joe Mail X
1 Joe Mail Y
2 Sam Fedex X
3 John Mail X
etc..

--------------------

and I need to find a way (macro?) to automatically have word format the
table in the following way:
1. When shipping is Mail - shade row
2. When next row has a different ID place a line (border) between the
two rows.


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)