View Single Post
 
Old 05-08-2018, 07:18 AM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I would tag the text boxes I wanted to refit by putting something in the Alt Text property. This way you can use the same text every time
Code:
Sub ResizeTextInShapes()
  Dim aShp As Shape
  For Each aShp In ActiveDocument.Shapes
    With aShp.TextFrame
      If .HasText And aShp.AlternativeText <> "" Then
        Do While .Overflowing
          .TextRange.Font.Shrink
        Loop
      End If
    End With
  Next aShp
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote