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

converttoshape anchor not accepted

Status
Not open for further replies.

bwilkens

Programmer
Feb 4, 2002
7
US
I am writing a macro to convert a picture (inlineshape) to a shape and want to anchor it to a certain paragraph on the page. When I specify the anchor I get error 438 -object doesn't support this property or method - though it is shown in the object browser. Do I not have a certain reference set that I need? Code is as follows:

Set myrange2 = ActiveDocument.Range.Paragraphs(2).Range
Set ishape = ActiveDocument.InlineShapes(1)
ishape.ConvertToShape (myrange2) 'error 438 here

error doesn't happen with
ishape.ConvertToShape
but shape is placed at top of page

Any help is much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top