Lizardo,
As long as the bookmark spans a range of at least one character (even a
blank space), you might be able to use something like this:
Sub ScratchMacro()
With ActiveDocument.Bookmarks("PicA").Range
.InlineShapes.AddPicture FileName:= _
"C:\Documents and Settings\gregory.maxey\My Documents\My
Pictures\Sample.jpg" _
, LinkToFile:=False, SaveWithDocument:=True,
Range:=ActiveDocument.Bookmarks("PicA").Range
End With
With ActiveDocument.Bookmarks("PicA").Range.InlineShapes(1)
.Height = 20
.Width = 60
End With
End Sub
Pretty crude, but I am off to a meeting and don't have time to refine.
> I'm sure this has been discussed many times, but so far, I haven't
> found anything that works.
[quoted text clipped - 18 lines]
>
> I'll take any suggestions. I'm pretty new at this.
Jay Freedman - 06 Dec 2006 18:48 GMT
It's better to use the function form of the AddPicture method (that is, put
parentheses around the parameter list, and assign the return value to an
InlineShape object representing the inserted picture). That lets you
manipulate the picture's size and any other properties, without having to
resort to the ActiveDocument.Bookmarks("PicA").Range.InlineShapes(1)
expression. Besides that, you can reassign the bookmark to the InlineShape
object's range at the end, so the original bookmark could be collapsed.
Sub foo()
Dim picRg As Range
Dim picILS As InlineShape
Dim picFile As String
Dim picBookmarkName As String
Dim picDesiredWidth As Single ' in inches
Dim picRatio As Single
picFile = "C:\temp\sample.jpg"
picBookmarkName = "bk1" ' change as needed
picDesiredWidth = 3.2 ' change as needed
Set picRg = ActiveDocument.Bookmarks(picBookmarkName).Range
Set picILS = ActiveDocument.InlineShapes.AddPicture( _
FileName:=picFile, LinkToFile:=False, Range:=picRg)
With picILS
' .LockAspectRatio = msoTrue doesn't work
' so you have to do it yourself
picRatio = CSng(.Height) / CSng(.Width)
.Width = InchesToPoints(picDesiredWidth)
.Height = picRatio * .Width
End With
ActiveDocument.Bookmarks.Add Name:=picBookmarkName, _
Range:=picILS.Range
End Sub

Signature
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
> Lizardo,
>
[quoted text clipped - 40 lines]
>>
>> I'll take any suggestions. I'm pretty new at this.
Greg Maxey - 06 Dec 2006 20:05 GMT
Jay,
Certainly looks better. Thanks.
> It's better to use the function form of the AddPicture method (that is, put
> parentheses around the parameter list, and assign the return value to an
[quoted text clipped - 85 lines]
> >>
> >> I'll take any suggestions. I'm pretty new at this.