Group:  Microsoft Word ยป microsoft.public.word.vba.addins
Thread: determine what fonts are in use in document

Geek News

determine what fonts are in use in document
Ann TEF 3/22/2007 4:53:37 PM
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
Re: determine what fonts are in use in document
"Tony Jollans" <My forename at my surname dot com> 3/22/2007 6:15:20 PM
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

"Ann TEF" <Ann TEF[ at ]discussions.microsoft.com> schreef in bericht
news:0E97D3C7-6821-4782-9DAE-95845295BCEA[ at ]microsoft.com...
[Quoted Text]
> 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

Re: determine what fonts are in use in document
"Bob Eaton" <pete_dembrowski[ at ]hotmail.com> 3/23/2007 3:09:38 AM
Here's the sledge hammer approach:

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

Bob


"Ann TEF" <Ann TEF[ at ]discussions.microsoft.com> wrote in message
news:0E97D3C7-6821-4782-9DAE-95845295BCEA[ at ]microsoft.com...
[Quoted Text]
> 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


Re: determine what fonts are in use in document
Ann TEF 3/23/2007 3:28:10 PM
Tony and Bob, Thank you for your replies. That has helped me a lot.

"Bob Eaton" wrote:

[Quoted Text]
> Here's the sledge hammer approach:
>
> Save the doc as xml and then look at the //w:fonts/w:font/[ at ]w:name values (or
> //pkg:part/pkg:xmlData/w:fonts/w:font/[ at ]w:name for XML in Word 07 files).
>
> Bob
>
>
> "Ann TEF" <Ann TEF[ at ]discussions.microsoft.com> wrote in message
> news:0E97D3C7-6821-4782-9DAE-95845295BCEA[ at ]microsoft.com...
> > 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
>
>
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net