Sub
Dateneinsetzen()
[...]
Documents.Add (dir1 &
"anlage.dot"
)
For
i = ListBox4.ListIndex
To
0
Step
-1
With
Selection
.
GoTo
What:=wdGoToBookmark, Name:=
"bild"
.Collapse direction:=wdCollapseEnd
End
With
With
ActiveDocument.Bookmarks
.DefaultSorting = wdSortByName
.ShowHidden =
False
End
With
Selection.InlineShapes.AddPicture FileName:= _
"\\NAS-SERVER\marco\ibb\originalbilder\" & Year(Now) & "
\
" & TextBox1.Value & "
\" & ListBox4.List(i), LinkToFile _
:=
False
, SaveWithDocument:=
True
Selection.TypeParagraph
Next
i
[...]
End
Sub