every 2nd paragrah type the word NEW

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello from Steved

I would like to type the word NEW and the end off every 2nd paragraph.

This is in the same Document.

How would I go about this please.

Thankyou.
 
Perhaps something like this:

Sub Test()
Dim oPar As Range
Dim i As Long
For i = 2 To ActiveDocument.Paragraphs.Count Step 2
Set oPar = ActiveDocument.Paragraphs(i).Range
oPar.MoveEnd wdCharacter, -1
oPar.InsertAfter " NEW"
Next
End Sub
 
Hello Greg from Steved

Thankyou.

Greg Maxey said:
Perhaps something like this:

Sub Test()
Dim oPar As Range
Dim i As Long
For i = 2 To ActiveDocument.Paragraphs.Count Step 2
Set oPar = ActiveDocument.Paragraphs(i).Range
oPar.MoveEnd wdCharacter, -1
oPar.InsertAfter " NEW"
Next
End Sub

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top