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.
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.