Hi Mr_Tony_James,
IMHO, no way.
Variables don't know anything about formatting.
You may use "P" instead.
And you'll know about the drawbacks, I guess.

Signature
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
Mr_Tony_James@hotmail.co.uk was telling us:
Mr_Tony_James@hotmail.co.uk nous racontait que :
> Hi all
>
[quoted text clipped - 12 lines]
>
> 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.

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Mr_Tony_James@hotmail.co.uk - 26 Apr 2006 16:47 GMT
> I assume that in the document you will have something like this where you
> want the tick to appear:
[quoted text clipped - 4 lines]
> the "square." You get a square because in the Times font (Or Arial, or
> whatever font you are using), ChrW(-4016) is not represented.
Jean_Guy
Yes you're correct in your assumption. I've tried your technique and
it works!
Many thank yous.
Tony
Jean-Guy Marcil - 26 Apr 2006 17:21 GMT
Mr_Tony_James@hotmail.co.uk was telling us:
Mr_Tony_James@hotmail.co.uk nous racontait que :
>> I assume that in the document you will have something like this
>> where you want the tick to appear:
[quoted text clipped - 11 lines]
> it works!
> Many thank yous.
One is enough!
You're welcome!

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
champollion.yves@wanadoo.fr - 26 Apr 2006 23:03 GMT
The problem appears when you actually plough back that character into
the document
Try something like
Selection.InsertSymbol CharacterNumber:=-4016, Font:="Wingdings
2", Unicode:=True
which IMO is the canonical way of inserting critters like bullets,
symbols, etc. into a document.
Cheers,
Yves Champollion
www.champollion.net
Mr_Tony_James@hotmail.co.uk - 28 Apr 2006 14:07 GMT
I appreciate your help. Won't that replace the DOCVARIABLE field in
the document with the tick symbol though? I need to keep the field.
Also how to select a DOCVARIABLE field in a document using the name of
the DOCVARIABLE?
Jean-Guy Marcil - 28 Apr 2006 15:34 GMT
Mr_Tony_James@hotmail.co.uk was telling us:
Mr_Tony_James@hotmail.co.uk nous racontait que :
> I appreciate your help. Won't that replace the DOCVARIABLE field in
Yes.
> the document with the tick symbol though? I need to keep the field.
>
> Also how to select a DOCVARIABLE field in a document using the name of
> the DOCVARIABLE?
What do you mean by "Select"?
From the UI? Through VBA? Something else?

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Mr_Tony_James@hotmail.co.uk - 28 Apr 2006 18:50 GMT
In VBA.
Jean-Guy Marcil - 28 Apr 2006 23:34 GMT
Mr_Tony_James@hotmail.co.uk was telling us:
Mr_Tony_James@hotmail.co.uk nous racontait que :
> In VBA.
Look at the Code property of the Field object, it returns the string
representing the field code.
So, you could do something like:
Dim myField As Field
For Each myField In ActiveDocument.Fields
If InStr(1, UCase(myField.Code), UCase("DOCVARIABLE")) > 0 Then
myField.Result.Select
MsgBox "This is a DocVariable field!"
End If
Next

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org