Application.FontNames property (Word)

Returns a FontNames object that includes the names of all the available fonts. Read-only.

Syntax

expression. FontNames

expression A variable that represents an Application object.

Example

This example displays the font names in the FontNames collection.

Dim strFont As String 
Dim intResponse As Integer 
 
For Each strFont In FontNames 
 intResponse = MsgBox(Prompt:=strFont, Buttons:=vbOKCancel) 
 If intResponse = vbCancel Then Exit For 
Next strFont

See also

Application Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.