Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-24-2020, 09:36 AM
gmaxey gmaxey is offline Macro to list font and its size on each page Windows 10 Macro to list font and its size on each page Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

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
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #2  
Old 04-26-2020, 04:51 AM
Ryhne Ryhne is offline Macro to list font and its size on each page Windows 10 Macro to list font and its size on each page Office 2013
Novice
Macro to list font and its size on each page
 
Join Date: Apr 2020
Posts: 11
Ryhne is on a distinguished road
Default

Thanks!
Reply With Quote
Reply

Tags
font list, font size, macro



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to list font and its size on each page 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
Macro to list font and its size on each page Looping Macro to Change Font, Font Size, and Give Heading 1 WH7262 Word VBA 1 08-26-2014 03:46 PM
Macro to list font and its size on each page 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

Other Forums: Access Forums

All times are GMT -7. The time now is 10:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft