Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Wed, 2 Apr 2008 03:39:46 -0700 (PDT),    group: microsoft.public.word.word97vba        back       


Field in header   
Hi,

i m posting because i can't manage to modify a Field in the header of
my document.

My Field is called "L_ConfidentieliteDoc",  and its value comme from a
ComboBox.

When my method UpdateField is called, the value of the field is
updated everywhere in document, included in header and footer.

The thing i want is simple, if the value of the field is "something" ,
i want to change the font of this field in red.

Does somebody can help me to do this?

thanks a lot
vince.
date: Wed, 2 Apr 2008 03:39:46 -0700 (PDT)   author:   lbahja

Re: Field in header   
Use an If...then...Else field that tests for the value of the field and 
format the value that is returned in that case as red.

-- 
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"lbahja"  wrote in message 
news:a0146d43-1ae2-4663-b7fd-abe78ef8a792@e39g2000hsf.googlegroups.com...
> Hi,
>
> i m posting because i can't manage to modify a Field in the header of
> my document.
>
> My Field is called "L_ConfidentieliteDoc",  and its value comme from a
> ComboBox.
>
> When my method UpdateField is called, the value of the field is
> updated everywhere in document, included in header and footer.
>
> The thing i want is simple, if the value of the field is "something" ,
> i want to change the font of this field in red.
>
> Does somebody can help me to do this?
>
> thanks a lot
> vince.
date: Wed, 2 Apr 2008 21:29:16 +1000   author:   Doug Robbins - Word MVP

RE: Field in header   
Hello,
When you come accross that word or phrase, you can select it and use the 
selection.font property to change to what ever colour you want.
Hope it works
Anand.V.V.N
-- 
"Who will guard the guards?"


"lbahja" wrote:

> Hi,
> 
> i m posting because i can't manage to modify a Field in the header of
> my document.
> 
> My Field is called "L_ConfidentieliteDoc",  and its value comme from a
> ComboBox.
> 
> When my method UpdateField is called, the value of the field is
> updated everywhere in document, included in header and footer.
> 
> The thing i want is simple, if the value of the field is "something" ,
> i want to change the font of this field in red.
> 
> Does somebody can help me to do this?
> 
> thanks a lot
> vince.
>
date: Wed, 2 Apr 2008 04:31:01 -0700   author:   Anand.V.V.N

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us