Article ID: 163611
Article Last Modified on 10/11/2006
Sub GetFontsInPresentation()
' Dimension the variables.
Dim ofont As font
Dim strPrompt As String
Dim count As Long
' Initialize the counter.
count = 0
' Loop through every font in the presentation.
For Each ofont In ActivePresentation.Fonts
count = count + 1
' Get the name of the font and add it to strPrompt.
strPrompt = strPrompt & count & ") " & ofont.Name & Chr(13)
Next ofont
' Display the font list.
MsgBox strPrompt, vbInformation, "Font List"
End Sub
176476 OFF: Office Assistant Not Answering Visual Basic Questions
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: 8.00 ppt8 vba vbe macppt mac_ppt ppt98 powerpt
Keywords: kbcode kbdtacode kbhowto kbmacro kbprogramming KB163611