Option Explicit
Sub InsertInlinePictureDialog()
Dim oDialog As Word.Dialog
Set oDialog = Dialogs(wdDialogInsertPicture)
With oDialog
.Display
If .Name <> "" Then
ActiveDocument.InlineShapes.AddPicture FileName:=.Name, _
LinkToFile:=False, _
SaveWithDocument:=True, _
Range:=Selection.Range
End If
End With
Set oDialog = Nothing
End Sub
Sub InsertFlowtingPictureDialog()
Dim oDialog As Word.Dialog
Set oDialog = Dialogs(wdDialogInsertPicture)
With oDialog
.Display
If .Name <> "" Then
ActiveDocument.Shapes.AddPicture FileName:=.Name, _
LinkToFile:=False, _
SaveWithDocument:=True, _
Left:=120, _
Top:=20, _
Width:=150, _
Height:=150, _
Anchor:=Selection.Range
End If
End With
Set oDialog = Nothing
End Sub
|