A
avkokin
Hello.
I need to find all words (only upper case) from text and do some list
of found words. I'm used my macro, bot it had cycled. I can't found my
wrong. Please give me any tips. Thank you. That my code:
Sub UcaseList()
Dim wu As Word.Range
Dim myArr() As String
Dim i As Long
With Selection
.EndKey wdStory
.TypeParagraph
End With
For Each wu In ActiveDocument.Words
If wu.Case = wdUpperCase Then
myArr = Split(wu)
Selection.InsertAfter myArr(i) & vbCr
End If
Next wu
End Sub
I need to find all words (only upper case) from text and do some list
of found words. I'm used my macro, bot it had cycled. I can't found my
wrong. Please give me any tips. Thank you. That my code:
Sub UcaseList()
Dim wu As Word.Range
Dim myArr() As String
Dim i As Long
With Selection
.EndKey wdStory
.TypeParagraph
End With
For Each wu In ActiveDocument.Words
If wu.Case = wdUpperCase Then
myArr = Split(wu)
Selection.InsertAfter myArr(i) & vbCr
End If
Next wu
End Sub