infusion69
asked on
VBA To find all Bookmarks in a word doc & Display Individually in a text box
Hey all.
Ive been mucking around making code. that searches through bookmarks in a word document
I was originally doing it via using default bookmark names
Bookmark = "bookmark" & i
ActiveDocument.Bookmarks(B ookmark).S elect
TextBox1 = Selection.FormattedText
but i need my code to find a bookmark regardless of name.
I was toggling forward and backward on book marks using the i to +1 and -1. But cant use that if im going to have custom bookmark names.
Ive been mucking around making code. that searches through bookmarks in a word document
I was originally doing it via using default bookmark names
Bookmark = "bookmark" & i
ActiveDocument.Bookmarks(B
TextBox1 = Selection.FormattedText
but i need my code to find a bookmark regardless of name.
I was toggling forward and backward on book marks using the i to +1 and -1. But cant use that if im going to have custom bookmark names.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.