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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set "Rotate fill effect with shape" in Word by VBA

Status
Not open for further replies.

VBOnly

Technical User
Jul 30, 2003
24
CA
Gurus:
I use Word VBA routine to fill a shape with a picture file:
objShape.Fill.UserPicture FileNameString
In the Word dialog for Fill Effect for picture, two check boxes are available: Rotate fill effect with shape, and , Lock picture aspect ratio.
The question is how to set these two check boxes in VBA?

Thank,
 
Have not get any suggestion. So I will explain the problem more clearly.

In the Word, a drawing shape (e.g. rectangle) can be filled with a user specific image file. Word let you to keep aspect ratio of the picture if you click the "Lock picture aspect ratio" on the [Fill Effect] dialog box. Also if you rotate the shape, the picture will not turn if the checkbox "Rotate fill effect with shape" is unchecked.

I program a routine to fill shapes with different images according to user selection (with activedocument.shapes.addshape or equivalent, and with .Fill.UserPicture method). I need to have the fill-image rotate with the shapes, but could not figure out what method to use or property to set.

Help would be appreciated.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top