Thread: [Solved] size of imported images ???
View Single Post
 
Old 05-04-2019, 04:08 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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

Presumably, since you're now working with inlineshapes, the code would become:
Code:
Sub Demo()
Dim iShp As InlineShape
With Selection ' or ActiveDocument
  For Each iShp In .InlineShapes
    With iShp
      .LockAspectRatio = True
      .Height = CentimetersToPoints(3.5)
      With .Line
        .ForeColor.RGB = RGB(0, 0, 0)
        .Weight = 0.5
        .Visible = True
        .Style = msoLineSingle
      End With
      With .Range.ParagraphFormat
        .Alignment = wdAlignParagraphCenter
        .LineSpacingRule = wdLineSpaceSingle
      End With
    End With
  Next
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote