Sub
InsertPicture()
Dim
ret
As
Integer
, sPic
As
String
With
Dialogs(wdDialogInsertPicture)
ret = .Show
If
ret = vbTrue
Then
sPic = Dateiname_von(.Name)
Selection.InsertBreak wdLineBreak
Selection.InsertAfter sPic
Selection.InsertParagraphAfter
Selection.Collapse wdCollapseEnd
End
If
End
With
End
Sub
Function
Dateiname_von(aa)
As
String
Dateiname_von = Mid(aa, InStrRev(aa, "\") + 1)
Dateiname_von = Mid(Dateiname_von, 1, Len(Dateiname_von) - 4)
End
Function