Hi Larry,
You want to anchor the picture when you first pull it in ..
Set myPicture = .AddPicture("E:\Documents and Settings\My Documents\My
Pictures\test.jpg", _
Linktofile = False, Savewithdcoument = True, _
Anchor :=Selection.Range)
You might want to anchor it more specifically to the begining of the
paragraph or something, I don't know, but that change will anchor it at the
cursor.
Also lose the ...Shapes("myPicture").Anchor.... line at the end; even if
corrected it is not needed.
--
Enjoy,
Tony
> I need to set up a macro that will always add a picture as a floating shape
> anchored to the current paragraph (where the cursor is located at the time
[quoted text clipped - 16 lines]
> .Side = wdWrapRight
> End With
ActiveDocument.Shapes("myPicture").Anchor.Paragraphs(1).Range.Select
> End With
>
> Any help will be most appreciated.
>
> Larry
Larry Lutz - 15 Oct 2005 20:57 GMT
That worked perfectly! Thanks.
Larry
> Hi Larry,
>
[quoted text clipped - 47 lines]
>>
>> Larry
Tony Jollans - 15 Oct 2005 21:05 GMT
My pleasure!
--
Enjoy,
Tony
> That worked perfectly! Thanks.
>
[quoted text clipped - 50 lines]
> >>
> >> Larry