![]() |
|
|
|
#1
|
|||
|
|||
|
It is really impossible to "try" what you posted because what you posted doesn't compile.
Code:
Sub TestFonts()
Dim bUniformFont As Boolean
bUniformFont = True
With ActiveDocument.Range
If .Font.Name = "" Then
.InsertBefore "Check Font Name" & vbCr
bUniformFont = False
End If
If .Font.Size = 9999999 Then
.InsertBefore "Check Font Size" & vbCr
bUniformFont = False
End If
End With
If bUniformFont Then MsgBox "The font used in your document is uniform. E.g., same font name, same fault size throughout."
lbl_Exit:
Exit Sub
End Sub
|
|
#2
|
|||
|
|||
|
Thanks!
|
|
| Tags |
| font list, font size, macro |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
List box font size increase
|
jnsiv50 | Excel | 1 | 01-22-2015 07:35 AM |
| Increase Font Size in a List Box | Phil H | Excel | 2 | 12-09-2014 08:40 AM |
Looping Macro to Change Font, Font Size, and Give Heading 1
|
WH7262 | Word VBA | 1 | 08-26-2014 03:46 PM |
MAcro to List all the Font & its size in a word document
|
shaukat74 | Word VBA | 1 | 01-29-2013 09:34 PM |
| Format Font Size in Combo Box List | lukewarmbeer | Word VBA | 0 | 08-27-2011 07:28 AM |