A
aehan
Hi
I'm trying to work out code that will prompt the user to fill a selected
autoshape with a picture. I have played around and looked for help on this,
so far all I can come up with is:
Sub InsertPictureBackground()
' Insert picture background in an autoshape allowing user to select the
picture
With Dialogs(wdDialogInsertPicture)
If .Show Then
With Selection.ShapeRange
.Height = imageHeight
.Width = imageWidth
End With
End If
End With
End Sub
This inserts a picture behind the autoshape, not in it. Can anyone help me
please?
Thank you
Aehan
I'm trying to work out code that will prompt the user to fill a selected
autoshape with a picture. I have played around and looked for help on this,
so far all I can come up with is:
Sub InsertPictureBackground()
' Insert picture background in an autoshape allowing user to select the
picture
With Dialogs(wdDialogInsertPicture)
If .Show Then
With Selection.ShapeRange
.Height = imageHeight
.Width = imageWidth
End With
End If
End With
End Sub
This inserts a picture behind the autoshape, not in it. Can anyone help me
please?
Thank you
Aehan