B
Brian
Hi All,
I am trying to amend a piece of code to allow the user to search for all
shapes, and resize. I want them to be able to insert the height in
centimeters, in a dialogue box.
Tried a few things, but can't get it to recognise centimeters for the
format. Here is a bit looking only at inlineshapes
Sub PictSize()
Dim HieghtSize As Integer
Dim oIshp As InlineShape
Dim oshp As Shape
HeightSize = InputBox("Enter height ", "Resize Picture", 10)
For Each oIshp In ActiveDocument.InlineShapes
With oIshp
.LockAspectRatio = msoTrue
.Height = HeightSize
End With
Next oIshp
End Sub
Thanks in advance,
I am trying to amend a piece of code to allow the user to search for all
shapes, and resize. I want them to be able to insert the height in
centimeters, in a dialogue box.
Tried a few things, but can't get it to recognise centimeters for the
format. Here is a bit looking only at inlineshapes
Sub PictSize()
Dim HieghtSize As Integer
Dim oIshp As InlineShape
Dim oshp As Shape
HeightSize = InputBox("Enter height ", "Resize Picture", 10)
For Each oIshp In ActiveDocument.InlineShapes
With oIshp
.LockAspectRatio = msoTrue
.Height = HeightSize
End With
Next oIshp
End Sub
Thanks in advance,