Link to home
Start Free TrialLog in
Avatar of infusion69
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(Bookmark).Select
    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
Avatar of Mitzs
Mitzs
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial