The thread seems to have lost the plot, but the original premise of a tool
to extract words that are capitalised is not that hard to achieve. I take it
by 'extract' you mean to another document? In which case something like
Sub ExtractAcronyms()
Dim rText As Range
Dim SDoc As Document
Dim TDoc As Document
Set SDoc = ActiveDocument
Set TDoc = Documents.Add
SDoc.Activate
With Selection
.HomeKey wdStory
With .Find
.ClearFormatting
.Replacement.ClearFormatting
.Replacement.Text = ""
Do While .Execute(findText:="[A-Z.]{2,}", _
MatchWildcards:=True, _
Wrap:=wdFindStop, Forward:=True) = True
Set rText = Selection.Range
TDoc.Activate
Selection.TypeText rText & vbCr
SDoc.Activate
rText.Collapse wdCollapseEnd
Loop
End With
End With
TDoc.Activate
With Selection
.WholeStory
.Sort ExcludeHeader:=False, FieldNumber:="Paragraphs", _
SortFieldType:=wdSortFieldAlphanumeric, _
SortOrder:=wdSortOrderAscending
With .Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "(*^13)@"
.Replacement.Text = "\1"
.Wrap = wdFindContinue
.Execute Replace:=wdReplaceAll
End With
.HomeKey wdStory
.Delete
End With
End Sub
http://www.gmayor.com/installing_macro.htm
should do the trick
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site
www.gmayor.com
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>