Hi,
I have many paragraphs in my document. Each Paragraph begins various number as text. I want to re-numbering all of them as text. It's working when I press F8 button one by one in the VB section. But It's not working when I press RUN on my current document!
Yken
Sub renumbering()
Dim par As Paragraph
Dim Words As String
Selection.HomeKey Unit:=wdStory
Words = 1
For Each par In ActiveDocument.Paragraphs
Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
If IsNumeric(Selection) Then
Selection = Words
Words = Words + 1
End If
Selection.EndOf Unit:=wdParagraph, Extend:=wdMove
Next par
End Sub
Bookmarks