Sub PastePDF() ' ' PastePDF Macro ' Removes annoying paragraph breaks from pasted pdf passages ' by Chris Payne ' 'Selection.Find.Execute Replace:=wdReplaceAll 'Selection.WholeStory Dim rngFrom, rngTo rngFrom = Selection.Start Selection.PasteAndFormat (wdFormatPlainText) rngTo = Selection.End ActiveDocument.Range(rngFrom, rngTo).Select Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = "^p" .Replacement.Text = " " .Forward = False '!!! .Wrap = wdFindStop '!!! .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute , , , , , , , , , , wdReplaceAll Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = " " .Replacement.Text = " " .Forward = False .Wrap = wdFindStop .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute Replace:=wdReplaceAll Selection.EndKey Unit:=wdLine End Sub