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 / Mailmerge and Fax / November 2007

Tip: Looking for answers? Try searching our database.

Conditionnal display of border and shading ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
caroline - 16 Nov 2007 17:28 GMT
Hi

I have a template with a table and i need to have a border and grey shading
in one cell only when i have a value of 1 in a field named CodeRel.
I was thinking about adding a if statement like:

{ IF { MERGEFIELD CodeRel } = 0 {Word.Border(Visible:=False) and
word.shading(Visible:=False}

but I don't know where i can put this.

If someone can help me :-)

Thank you
Peter Jamieson - 16 Nov 2007 23:26 GMT
Sorry, Word's "field language" just can't do that sort of thing, unless this
is the only difference between the two versions of the table, in which case
you might be able to use this kind of thing:

{ IF { MERGEFIELD CodeRel } = 0 "put the entire table without the special
markup here" "put the entire table with the special markup here" }

Otherwise, what you really need to do in this case is to use VBA and Word's
MailMerge events to modify the mail merge main document to have the correct
formatting before each record is merged.

Signature

Peter Jamieson
http://tips.pjmsn.me.uk

> Hi
>
[quoted text clipped - 11 lines]
>
> Thank you
 
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.