Solved

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

Posted on 2008-10-06
1
1,018 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
Mitzs earned 50 total points
ID: 22661038
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
System.net.Sockets Error 5 40
VB.NET Textbox input validation 4 66
VS 2015 is giving [No relevant source lines] 2 40
Groupbox Control ? 2 29
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 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