Article ID: 163612
Article Last Modified on 10/11/2006
Sub SetFontBold()
' Used to store a font object reference.
Dim oFont As font
' Get a reference to the font property.
Set oFont = ActiveWindow.Selection.TextRange.font
' See whether the selected text is bold.
If oFont.Bold <> msoTrue Then
oFont.Bold = msoTrue
Else
' The font selection was already bold.
MsgBox "The selected text is already bold."
End If
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 KB163612