Discussion:
determine what fonts are in use in document
(too old to reply)
Ann TEF
2007-03-22 16:53:37 UTC
Permalink
Hi,
i would like to develop a macro to determine what fonts are in use in a Word
document (particularly looking for wingdings) - is there any way to do this
OTHER THAN visiting every character in the document and checking the font -
which is extremely slow.
Thanks you
Tony Jollans
2007-03-22 18:15:20 UTC
Permalink
If you are just looking for a particular font you can use Find&Replace. If
you want all fonts in use there is no easy way.

Be aware though ...
(a) that the font of an inserted symbol can not be picked up this way,
and
(b) it is slightly different with theme fonts in Word 2007
--
Enjoy,
Tony
Post by Ann TEF
Hi,
i would like to develop a macro to determine what fonts are in use in a Word
document (particularly looking for wingdings) - is there any way to do this
OTHER THAN visiting every character in the document and checking the font -
which is extremely slow.
Thanks you
Bob Eaton
2007-03-23 03:09:38 UTC
Permalink
Here's the sledge hammer approach:

Save the doc as xml and then look at the //w:fonts/w:font/@w:name values (or
//pkg:part/pkg:xmlData/w:fonts/w:font/@w:name for XML in Word 07 files).

Bob
Post by Ann TEF
Hi,
i would like to develop a macro to determine what fonts are in use in a Word
document (particularly looking for wingdings) - is there any way to do this
OTHER THAN visiting every character in the document and checking the font -
which is extremely slow.
Thanks you
Ann TEF
2007-03-23 15:28:10 UTC
Permalink
Tony and Bob, Thank you for your replies. That has helped me a lot.
Bob
Post by Ann TEF
Hi,
i would like to develop a macro to determine what fonts are in use in a Word
document (particularly looking for wingdings) - is there any way to do this
OTHER THAN visiting every character in the document and checking the font -
which is extremely slow.
Thanks you
Loading...