Jean-Guy
Wed Apr 26 09:51:05 CDT 2006
Mr_Tony_James@hotmail.co.uk was telling us:
Mr_Tony_James@hotmail.co.uk nous racontait que :
> Hi all
>
> Word 2003 on XP Pro. Does anyone know how to set the value of a
> document variable to a Wingdings 2 character?
>
> My existing code is:
> ActiveDocument.Variables("required").Value = "Yes"
>
> I'd like to replace the "Yes" with a tick symbol (character number
> -4016) from the Wingdings 2 font.
>
> Have tried:
> ActiveDocument.Variables("required").Value = ChrW(-4016) but it gives
> a box symbol.
>
> Is this possible or is there another way? Thanks.
I assume that in the document you will have something like this where you
want the tick to appear:
{DOCVARIABLE required}
Select that bit and apply the Windings 2 font to see the "tick" instead of
the "square." You get a square because in the Times font (Or Arial, or
whatever font you are using), ChrW(-4016) is not represented.
There a some font/unicode experts around here, if they happen to be around,
I am sure they can explain it all better than I can.
If you have other font issues, you could also post in the word.printingfonts
group.
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site:
http://www.word.mvps.org