View Single Post
 
Old 11-06-2012, 05:18 AM
gmaxey gmaxey is offline Windows XP Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,601
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Continuing Paul's approach, I would suggest adding a sequence field rather than a fixed number. This way, if needed, you still rearrange the list.

Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oPar As Word.Paragraph
Dim oRng As Word.Range
For Each oPar In ActiveDocument.Range.Paragraphs
  If Not oPar.Range.Words(1) Like vbCr Then
    Set oRng = oPar.Range.Words(1)
    oRng.Select
    ActiveDocument.Fields.Add oRng, wdFieldSequence, "Numbered", False
  End If
Next oPar
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/

Last edited by macropod; 11-06-2012 at 01:04 PM. Reason: Added code tags & formatting
Reply With Quote