Loop until end


Joined
Mar 4, 2020
Messages
1
Reaction score
0
Hi Guys

Can somebody please assist with looping the below VBA code:

Sub InsertStatTurnover()
'
' InsertStatTurnover Macro
' Macro recorded 2/28/2020 by Windows User
'
Selection.Find.ClearFormatting
With Selection.Find
.Text = ";"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.Find.ClearFormatting
With Selection.Find
.Text = ";"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
Selection.MoveRight Unit:=wdCharacter, Count:=2
Selection.TypeParagraph
Selection.TypeText Text:=vbTab
Selection.Style = ActiveDocument.Styles("StatTurnOver")
End Sub
 

Attachments

Ad

Advertisements

macropod

Microsoft MVP
Joined
Mar 2, 2012
Messages
493
Reaction score
43
Not unless you tell us what the macro is supposed to achieve...
 

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

Similar Threads


Top