Solved

VBA To find all Bookmarks in a word doc & Display Individually in a text box

Posted on 2008-10-06
1
1,017 Views
Last Modified: 2008-10-14
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.
0
Comment
Question by:infusion69
1 Comment
 
LVL 4

Accepted Solution

by:
Mitzs earned 50 total points
ID: 22661038
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question