View Single Post
 
Old 07-10-2018, 05:52 AM
kilroy kilroy is offline Windows 10 Office 2016
Competent Performer
 
Join Date: Sep 2016
Location: Southern Ontario
Posts: 122
kilroy is on a distinguished road
Default

Rick when ever I'm opening a PDF in word I first run text recognition in Adobe or BlueBeam and then when I have extra page breaks I run the following macro to remove all breaks:

Code:
Sub DeletePageBreaks()
Dim arr() As Variant
Dim i As Byte
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
arr = Array("wdSectionBreakContinuous", "^m", "^n", "^b")
  For i = LBound(arr) To UBound(arr)
    With Selection.Find
      .Text = arr(i)
      .Replacement.Text = ""
      .Forward = True
      .Wrap = wdFindContinue
    End With
  Selection.Find.Execute Replace:=wdReplaceAll
  Next
End Sub
Reply With Quote