AW: Das hat weniger mit "Technik"...
09.06.2022 14:20:03
MMRH
Hi, danke an alle.
Ich habe es hinbekommen.
Falls von Interesse anbei, ansonsten einfach löschen.
Option Explicit
Sub bkmrk()
Dim s As String
Selection.Words(1).Select
Selection.MoveLeft unit:=wdCharacter, Count:=1, Extend:=wdExtend
Selection.Copy
s = Selection
With ActiveDocument.Bookmarks
.Add Name:=s + "zurückneu", Range:=Selection.Range
.DefaultSorting = wdSortByName
.ShowHidden = False
End With
Selection.EndKey unit:=wdStory
Selection.InsertBreak Type:=wdPageBreak
ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range, Address:="", _
SubAddress:=s + "zurückneu", ScreenTip:="", TextToDisplay:=s 'Selection.Range
Dim b As String
Selection.MoveLeft unit:=wdCharacter, Count:=1, Extend:=wdExtend
Selection.Words(1).Select
Selection.Copy
b = Selection
With ActiveDocument.Bookmarks
.Add Name:=b + "hinneu", Range:=Selection.Range
.DefaultSorting = wdSortByName
.ShowHidden = False
End With
Selection.GoTo What:=wdGoToBookmark, Name:=s + "zurückneu"
With ActiveDocument.Bookmarks
.DefaultSorting = wdSortByName
.ShowHidden = False
End With
Selection.MoveRight unit:=wdCharacter, Count:=1
Selection.Words(1).Select
ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range, Address:="", _
SubAddress:=b + "hinneu", ScreenTip:="", TextToDisplay:=b 'Selection.Range
End Sub