![]() |
|
#7
|
|||
|
|||
|
This should work:
HTML 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
If oPar.Range.Words(2) = vbTab Then
Set oRng = oPar.Range.Words(1)
ActiveDocument.Fields.Add oRng, wdFieldSequence, "Numbered", False
End If
End If
Next oPar
End Sub
|
| Tags |
| find and replace |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Bad view when using Find and Find & Replace - Word places found string on top line
|
paulkaye | Word | 4 | 12-06-2011 11:05 PM |
Is there a way to use "find/replace" to find italics words?
|
slayda | Word | 3 | 09-14-2011 02:16 PM |
Find and Replace
|
kjxavier | Word | 6 | 08-19-2011 09:56 PM |
Find and Replace
|
kjxavier | Word | 1 | 08-12-2011 08:57 AM |
Help with find and replace or query and replace
|
shabbaranks | Excel | 4 | 03-19-2011 08:38 AM |