![]() |
|
#2
|
|||
|
|||
|
Here is one way:
Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oRng As Word.Range
Dim lngIndex As Long
Set oRng = ActiveDocument.Range
For lngIndex = 2 To 150
With oRng.Find
.Text = lngIndex & ". "
.Font.Bold = True
While .Execute
oRng.MoveStart wdCharacter, -1
oRng.Characters(1) = vbCr
oRng.Collapse wdCollapseEnd
Wend
End With
Next lngIndex
Set oRng = ActiveDocument.Range
With oRng.Find
.Text = " [abcd]."
.MatchWildcards = True
While .Execute
oRng.Characters(1) = vbCr
oRng.Collapse wdCollapseEnd
Wend
End With
End Sub
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Creating a macro button in powerpoint
|
Sammie0Sue | PowerPoint | 1 | 12-06-2013 05:51 AM |
Creating a generic macro?
|
suerose | Word | 2 | 07-04-2011 07:59 PM |
Creating macro to convert/print to pdf
|
shabbaranks | Word | 3 | 05-18-2011 08:59 AM |
| Creating a MACRO | Nikb3522 | Word VBA | 0 | 10-21-2010 05:55 PM |
| creating macro | steveb | Word VBA | 0 | 08-14-2010 01:29 AM |