Solved

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

Posted on 2008-10-06
1
1,014 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now