View Single Post
 
Old 11-12-2017, 03:59 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Try:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim i As Long
With ActiveDocument.Range.Find
    .ClearFormatting
    .Replacement.ClearFormatting
    .Format = True
    .Font.SmallCaps = True
    .Replacement.Font.AllCaps = True
    .Replacement.Font.SmallCaps = False
    .Forward = True
    .Wrap = wdFindStop
    .MatchWildcards = True
    .Text = "[A-Z]"
    .Replacement.Text = "^&"
    .Execute Replace:=wdReplaceAll
    .MatchWildcards = False
    .Text = ""
    .Replacement.Text = ""
    For i = 12 To 36
      .Font.Size = i / 2
      .Replacement.Font.Size = i / 2 - 2
      .Execute Replace:=wdReplaceAll
    Next
End With
Application.ScreenUpdating = True
End Sub
As coded, the macro will resize all lower-case small-caps text between 6pt & 18pt to all caps 2pt smaller. All upper-case small-caps text is retained as all caps at the original size.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote