Auto-extending bookmarks

G

Guest

H

I would like to be able to automatically extend bookmarks around a section of text so that the bookmarks can later be referref to through hyperlinks, sharepoint, etc

We have already defined bookmarks around the header styles of the documents but it would be more useful if, when the various text under the headers has been filled in, we could extend the range of the bookmark to include all text up to the next Header

For example

-----Pretend before document------
[Objectives] <<<< Header style 1 from template Bookmark is the word Objective

Some explanatory dialogu

[scope] and deliverables <<<<<< Header Style 1 from template bookmark is the word Scop

more explanatory tex

[more] headers <<<<<< and so o
-------- pretned before document end-----

After the user has created a new document from the template we would like to be able to quote the entire section rather than just the headers in other documents viz

-------- pretend after document start --------

[Objectives

Objective
Objective

] <<<< Bookmark is the now entire text from [Objectives to her

[scop

scope
deliverables
et

]bookmark is the text between [Scope and her

more explanatory tex

[more] headers <<<<<< and so o
-------- pretned after document end-----

I looked up bookmarks on the MVP site (thank you again people) and found a macro that lets me change the content of the header but I need to be able to

1) for each pre-defined bookmar
2) select all text from beginning of current bookmark to next heading style 1 (this would also be the next bookmark if thats any help
3) replace current bookmark text with selection - leave name the sam
4) Next bookmar

Is this possible/desirable or is there a simple way I'm missing ? If not then how do I

a) loop through all bookmark
b) get the selection righ

Reg
 
M

macropod

Hi Reg,

The best way to do this would be to start of by selecting both the header
and two empty following paras and applying bookmarks encompassing the lot.
You'll find that the bookmark will actually not include the last empty para.
Then do all the typing within the bookmark. As soon as you've started typing
in the 1st empty para, you can delete the 2nd empty para.

Cheers

RegUK said:
Hi

I would like to be able to automatically extend bookmarks around a section
of text so that the bookmarks can later be referref to through hyperlinks,
sharepoint, etc.
We have already defined bookmarks around the header styles of the
documents but it would be more useful if, when the various text under the
headers has been filled in, we could extend the range of the bookmark to
include all text up to the next Header.
For example:

-----Pretend before document-------
[Objectives] <<<< Header style 1 from template Bookmark is the word Objectives

Some explanatory dialogue

[scope] and deliverables <<<<<< Header Style 1 from template bookmark is the word Scope

more explanatory text

[more] headers <<<<<< and so on
-------- pretned before document end------

After the user has created a new document from the template we would like
to be able to quote the entire section rather than just the headers in other
documents viz:
-------- pretend after document start ---------

[Objectives

Objective 1
Objective 2

] <<<< Bookmark is the now entire text from [Objectives to here

[scope

scope 1
deliverables 1
etc

]bookmark is the text between [Scope and here

more explanatory text

[more] headers <<<<<< and so on
-------- pretned after document end------


I looked up bookmarks on the MVP site (thank you again people) and found a
macro that lets me change the content of the header but I need to be able to
1) for each pre-defined bookmark
2) select all text from beginning of current bookmark to next heading
style 1 (this would also be the next bookmark if thats any help)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top