It is in normal style already. ^p didn't work. I am using 2003 Word. There is
carriage return after every line. How do I get rid off it?
Thank you.
Here's an adaptation of the famous "fixmail" macro. Save this to
your normal.dot template. Make sure desired paragraphs first have
two linefeeds between them. I believe this will work either on a
Selection or from insertion point downward.
Another way to get at it is to use a Clipboard utility such as
CLCL or Clippy.
p.
Sub Fix_Mail()
'
' Paul B.
' to unformat email. separate true paragraphs first. d/l from
FileWorld.com
'
' first, convert soft to hard returns (added 4/07):
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "^l"
.Replacement.Text = "^p"
.Forward = True
.Wrap = wdFindStop
End With
Selection.Find.Execute Replace:=wdReplaceAll
' continue with original fixmail macro:
dowhat = wdFindStop
' If selection.Type = wdSelectionIP Then
' selection.HomeKey Unit:=wdStory
' dowhat = wdFindContinue
'End If
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
'
With Selection.Find
.Text = "^p"
.Replacement.Text = "@@@"
.Forward = True
.Wrap = dowhat
End With
Selection.Find.Execute Replace:=wdReplaceAll
'
With Selection.Find
.Text = "@@@@@@"
.Replacement.Text = "^p^p"
.Forward = True
.Wrap = dowhat
End With
Selection.Find.Execute Replace:=wdReplaceAll
'
With Selection.Find
.Text = "@@@"
.Replacement.Text = " "
.Forward = True
.Wrap = dowhat
End With
Selection.Find.Execute Replace:=wdReplaceAll
' kill extra carriage returns, doublespaces:
' Call Normal.NewMacros.CR_subtract
' Call Normal.NewMacros.doublespace_killer
' Call Normal.NewMacros.doublespace_killer
'
End Sub