View Single Post
 
Old 01-25-2018, 03:36 AM
srinivas.mj srinivas.mj is offline Windows 7 32bit Office 2007
Novice
 
Join Date: Jan 2018
Posts: 1
srinivas.mj is on a distinguished road
Post need macro to run on all files in folder

need macro to run on all files in folder

Sub BreakLines()
Application.ScreenUpdating = False
With ActiveDocument.Content.Paragraphs
.FirstLineIndent = 0
.LeftIndent = 0
End With
Selection.HomeKey Unit:=wdStory
Do
Selection.EndKey Unit:=wdLine
If Selection.End >= ActiveDocument.Content.End - 1 Then
Exit Do
End If
If Asc(Selection) <> 13 Then
Selection.InsertParagraphAfter
End If
Selection.MoveDown Unit:=wdLine
Loop
Application.ScreenUpdating = True
End Sub
Reply With Quote