identifying portions of text without using a bookmark

C

Chip Orange

I have a template which allows a user to position within a document and
cause some text to be inserted. This may happen many times throughout the
document, and I need later to be able to find these portions of text (to
extract them). The only way I know to do this is by using bookmarks, but I
understand that you can't have more than one passage of text marked with a
given bookmark name.

Should I try to generate a sequence of unique bookmark names that I can work
through later to identify which ones belong to my set of bookmarks, or is
there a betterway to do this?

thanks.

Chip
 
C

Chip Orange

thanks for the suggestion, but this text will already have a style (or
various styles) applied for formatting reasons, so as I understand styles
then I could not apply a second one to it.

Chip
 
L

Lynn Taylor

Are you using VBA at all to do any of the inserting and/or
extraction. If you are, when you insert the text, you
could add a bookmark around the text, give the bookmark a
name like bmk1 and at the next insertion increase the
number by 1, so the next insertion would wrap a bookmark
called bmk 2. Let me know if you need help with the VBA.
-----Original Message-----
thanks for the suggestion, but this text will already have a style (or
various styles) applied for formatting reasons, so as I understand styles
then I could not apply a second one to it.

Chip


message news:uINPwYy%[email protected]...
 
S

Suzanne S. Barnhill

You could use a character style that doesn't actually change the formatting
(Default Paragraph Font +).



Chip Orange said:
thanks for the suggestion, but this text will already have a style (or
various styles) applied for formatting reasons, so as I understand styles
then I could not apply a second one to it.

Chip
 
C

Chip Orange

thanks, that was my plan (yes, I'm using vba), if nothing better presented
itself, to come up with a way to enclose each portion of text in a uniquely
named bookmark, and name it in such a way that another program later, could
recognize it as being part of the desired series of bookmarks.

thanks.

Chip


Lynn Taylor said:
Are you using VBA at all to do any of the inserting and/or
extraction. If you are, when you insert the text, you
could add a bookmark around the text, give the bookmark a
name like bmk1 and at the next insertion increase the
number by 1, so the next insertion would wrap a bookmark
called bmk 2. Let me know if you need help with the VBA.
 
C

Chip Orange

If they already have a character style in use can you have more than one on
the same section of text?

thanks.


Suzanne S. Barnhill said:
You could use a character style that doesn't actually change the formatting
(Default Paragraph Font +).



message news:#m4v$K7#[email protected]...
 
S

Suzanne S. Barnhill

No, I don't think so. Sorry.



Chip Orange said:
If they already have a character style in use can you have more than one on
the same section of text?

thanks.


Suzanne S. Barnhill said:
You could use a character style that doesn't actually change the formatting
(Default Paragraph Font +).

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the
newsgroup
 
K

Klaus Linke

Hi Chip,

If you don't mind dirty hacks, and all your text has color=automatic, you
could use color=black or some custom color that's indistinguishable from
black.
You can later retrieve everything formatted in a certain color with Find.

If a user adds new text, it'll continue in the current color... but that
would be the behaviour of bookmarks, too (anything typed in them is added to
them).

Greetings,
Klaus
 
C

Chip Orange

thanks; it's worth considering, I'd have to be sure they'd never have color
(we do use it here).

Chip
 

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