20 January, 2010

Remove Paragraph Marks / Carriage Returns

I'm sure you've received an email from time to time that you need to save in Word or publish online, and there were carriage returns every line as if it was entered using a typewriter (you remember those). It can be very time consuming to manually delete each Carriage Return on every line. But thanks to a Word Macro, the job is easier. Note that once they are all removed, you still need to re-enter the appropriate paragraph marks.

Create a new Macro and use code:

Sub NameOfMacro()
For Each Xpara In ActiveDocument.Paragraphs
Xpara.Range.Select
Selection.Characters(Selection.Characters.Count).Delete
Next
End Sub

After saving, run the macro.

No comments: