Reply
 
Thread Tools Display Modes
  #1   Report Post  
YossiK
 
Posts: n/a
Default Format Table based on contents


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.

Does anyone know how to do this ?


--
YossiK
  #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 :-)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table AutoFormats vs. Table Styles confusion Tony Jollans Tables 5 March 6th 05 07:18 PM
Item in Table of Contents throw off numbering Robert McN Page Layout 4 January 27th 05 12:50 AM
Format of Table of Contents Russell Brook Page Layout 6 December 20th 04 04:38 PM
How do I format my Table of Contents to have hyperlinks? fadeout Microsoft Word Help 3 December 13th 04 10:21 PM
Getting the format of a table Kind writer/user/programmer Tables 0 October 29th 04 02:52 AM


All times are GMT +1. The time now is 06:21 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"