Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Object Sizes

Status
Not open for further replies.

ceecld

Technical User
Jul 17, 2003
68
US
I have the following code, which i use to change to size of screen dumps to 55% so i can get two objects per page.

I was wondering how i change it so that it only chnages the object which I have selected?

Sub ipsa55()

Dim Inl As InlineShape

For Each Inl In ActiveDocument.InlineShapes
Inl.ScaleHeight = 55
Inl.ScaleWidth = 55
Next

End Sub


Thanks
 
Your code changes ALL InLine Shapes. To change just the selected object:

With Selection.InlineShapes(1)
.ScaleHeight = 55
End With

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top