Reply
 
Thread Tools Display Modes
  #1   Report Post  
TPlus
 
Posts: n/a
Default Lists of Specific Words - Wordperfect Feature Conversion

How can I create a list of specific words used in a document without creating
a separate marking for them, such as the index uses. Is there anyway to use
a style that could create a list (using a character style that feeds into a
TOC entry). It will only be words, not complete sentences.

The issue with a "marked text - duplicate selection of text being created"
is ensuring that edits are made in the "marked text area" as well.
Wordperfect had a listing feature that marked the actual selected text and it
did not create a duplicate area. Thanks in advance for any ideas or
suggestions.
  #2   Report Post  
Daiya Mitchell
 
Posts: n/a
Default

I think you'd better explain a little further what you are talking about.
What is the end result that you want to have? And what version of Word are
you using?

In response to your first paragraph, I say, "type a list". Your second
paragraph makes no sense to me whatsover.


On 5/3/05 12:21 PM, "TPlus" wrote:

How can I create a list of specific words used in a document without creating
a separate marking for them, such as the index uses. Is there anyway to use
a style that could create a list (using a character style that feeds into a
TOC entry). It will only be words, not complete sentences.

The issue with a "marked text - duplicate selection of text being created"
is ensuring that edits are made in the "marked text area" as well.
Wordperfect had a listing feature that marked the actual selected text and it
did not create a duplicate area. Thanks in advance for any ideas or
suggestions.


--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: http://www.word.mvps.org/MacWordNew/
What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/

  #3   Report Post  
Klaus Linke
 
Posts: n/a
Default

Hi,

You can create an index out of all words (phrases) marked in some =
character style "myIndex" with the macro below.
It's still easiest to use the built-in index feature (=3D insert XE =
fields), but you can immediately unlink the index (turn the index field =
into plain text), and delete the XE fields in the same macro.

Regards,
Klaus


Sub CharStyleToIndex()
' marks up all text formatted in some char style
' as index entries
Dim myCharStyle As String
' Insert the name of your char style he
myCharStyle =3D "myIndex"
Dim strEntry As String
Dim strOut As String
Dim start
Application.ScreenUpdating =3D False
ActiveWindow.View.ShowAll =3D False
ActiveWindow.View.ShowHiddenText =3D False
Selection.HomeKey (wdStory)
With Selection.Find
.ClearFormatting
.Style =3D myCharStyle
.Text =3D ""
.Forward =3D True
.Wrap =3D wdFindStop
.Format =3D True
End With
While Selection.Find.Execute
strEntry =3D Selection.Text
ActiveDocument.Indexes.MarkEntry _
Range:=3DSelection.Range, Entry:=3DstrEntry
Selection.Collapse (wdCollapseEnd)
Wend
With ActiveDocument
.Range(.Range.End - 1, .Range.End).Select
Selection.InsertParagraphAfter
Selection.Move Unit:=3DwdCharacter, Count:=3D1
.Indexes.Add Range:=3DSelection.Range, _
HeadingSeparator:=3DwdHeadingSeparatorNone, _
Type:=3DwdIndexIndent, _
RightAlignPageNumbers:=3DFalse, _
NumberOfColumns:=3D2
.Indexes(1).TabLeader =3D wdTabLeaderDots
End With
Selection.MoveStart Unit:=3DwdCharacter, Count:=3D-1
Selection.Fields(1).Unlink
With ActiveWindow
.View.ShowFieldCodes =3D True
.ActivePane.View.ShowAll =3D True
End With
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text =3D "^d XE"
.Replacement.Text =3D ""
.Forward =3D True
.Wrap =3D wdFindContinue
.Format =3D False
.MatchCase =3D False
.MatchWholeWord =3D False
.MatchWildcards =3D False
.MatchSoundsLike =3D False
.MatchAllWordForms =3D False
End With
Selection.Find.Execute Replace:=3DwdReplaceAll
End Sub



"TPlus" wrote:
How can I create a list of specific words used in a document without =

creating=20
a separate marking for them, such as the index uses. Is there anyway =

to use=20
a style that could create a list (using a character style that feeds =

into a=20
TOC entry). It will only be words, not complete sentences.
=20
The issue with a "marked text - duplicate selection of text being =

created"=20
is ensuring that edits are made in the "marked text area" as well. =20
Wordperfect had a listing feature that marked the actual selected text =

and it=20
did not create a duplicate area. Thanks in advance for any ideas or=20
suggestions.

  #4   Report Post  
TPlus
 
Posts: n/a
Default

I am using Word 2003. The end result that I need is a list of words for an
index that includes page numbers. The difficulty with the "index process"
currently in word is that it creates a duplicate of the marked word. When
edits are made there is a chance that the person won't think to make those
edits to the duplicated words (if they don't think to ensure that the hidden
text is on) which would be time consuming to check and there is not usually
time at that point in the process to recheck. So if there is a way to mark
the "actual text" and have that drop into a list that will alleviate the
chance for edits to be missed.

Thanks.

"Daiya Mitchell" wrote:

I think you'd better explain a little further what you are talking about.
What is the end result that you want to have? And what version of Word are
you using?

In response to your first paragraph, I say, "type a list". Your second
paragraph makes no sense to me whatsover.


On 5/3/05 12:21 PM, "TPlus" wrote:

How can I create a list of specific words used in a document without creating
a separate marking for them, such as the index uses. Is there anyway to use
a style that could create a list (using a character style that feeds into a
TOC entry). It will only be words, not complete sentences.

The issue with a "marked text - duplicate selection of text being created"
is ensuring that edits are made in the "marked text area" as well.
Wordperfect had a listing feature that marked the actual selected text and it
did not create a duplicate area. Thanks in advance for any ideas or
suggestions.


--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: http://www.word.mvps.org/MacWordNew/
What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/


  #5   Report Post  
Daiya Mitchell
 
Posts: n/a
Default

So you have created an index where one of the words, for instance, is
"cyber-café". When someone comes along and changes it to "cybercafe", you
want the index field to also change to "cybercafe", and "cybercafe" to be
listed in the index instead of "cyber-café".

Is that what you mean?

The macro Klaus Linke offered should make that easier (since you bothered to
reply to my message, I'm guessing you didn't understand how to use it?). If
I have understood it correctly, the macro finds all words formatted in the
MyIndex style and creates an index field for them, then inserts the Index,
turns it to plain text, and deletes the index fields (XE fields).

You will have to re-run the macro after each round of editing, to generate
an updated accurate index, but once the words are formatted in the MyIndex
style, they should hold that formatting, and the macro will re-mark them
with index entries for you. If people start adding new text, some words may
get missed, however.

You will have to go through and apply the character style MyIndex at least
once, find and replace will probably help there. You will also have to
create the MyIndex style, which you can call anything you want so long as
you set the macro to match.

If you don't know what to do with the macro, see here
Guide to Installing Macros
http://www.gmayor.com/installing_macro.htm

And experiment on a COPY of the document.

Alternatively, don't create the index until editing is all finished.

DM




On 5/4/05 5:28 AM, "TPlus" wrote:

I am using Word 2003. The end result that I need is a list of words for an
index that includes page numbers. The difficulty with the "index process"
currently in word is that it creates a duplicate of the marked word. When
edits are made there is a chance that the person won't think to make those
edits to the duplicated words (if they don't think to ensure that the hidden
text is on) which would be time consuming to check and there is not usually
time at that point in the process to recheck. So if there is a way to mark
the "actual text" and have that drop into a list that will alleviate the
chance for edits to be missed.

Thanks.

"Daiya Mitchell" wrote:

I think you'd better explain a little further what you are talking about.
What is the end result that you want to have? And what version of Word are
you using?

In response to your first paragraph, I say, "type a list". Your second
paragraph makes no sense to me whatsover.


On 5/3/05 12:21 PM, "TPlus" wrote:

How can I create a list of specific words used in a document without
creating
a separate marking for them, such as the index uses. Is there anyway to use
a style that could create a list (using a character style that feeds into a
TOC entry). It will only be words, not complete sentences.

The issue with a "marked text - duplicate selection of text being created"
is ensuring that edits are made in the "marked text area" as well.
Wordperfect had a listing feature that marked the actual selected text and
it
did not create a duplicate area. Thanks in advance for any ideas or
suggestions.



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I build a word list with number of occurrences of each wor. Bill Crowl Microsoft Word Help 2 March 19th 05 11:17 PM
redundant words ambrozia Microsoft Word Help 1 March 10th 05 08:45 PM
Counting instances of specific words in a document Michael Z Microsoft Word Help 3 February 20th 05 06:35 PM
Tracking Specific Words dee Microsoft Word Help 1 January 5th 05 10:17 PM
Tab key in Word's outlining feature SkinnyAlaskan Microsoft Word Help 2 December 29th 04 07:03 AM


All times are GMT +1. The time now is 04:26 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"