[mso] Re: Printing all Installed Fonts

  • From: "Greg Chapman" <greg@xxxxxxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Sat, 20 Sep 2003 22:27:09 -0500

The Word object model has a collection for the installed fonts. So you can
cycle through each installed font and print a line using that font. Here's
an example:
'======================================
Sub PrintAllFonts()

Dim TheseFonts

For Each InstalledFont In FontNames
    With Selection
        .Font.Name = InstalledFont
        .TypeText Text:=InstalledFont
        .TypeText Text:=vbCrLf
    End With
Next InstalledFont

End Sub
'======================================

Greg Chapman
http://www.mousetrax.com
"Counting in binary is as easy as 01, 10, 11!
With thinking this clear, is coding really a good idea?"


> -----Original Message-----
> From: mso-bounce@xxxxxxxxxxxxx
> [mailto:mso-bounce@xxxxxxxxxxxxx] On Behalf Of Christine
> Sent: Saturday, September 20, 2003 6:17 PM
> To: mso@xxxxxxxxxxxxx
> Subject: [mso] Printing all Installed Fonts
>
>
> Someone once showed me how to print, in Word, all the
> installed fonts but of course, I can't remember how.  Anyone
> know how to do this?
> Thanks
>
> Christine
>

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: