Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-10-2018, 05:52 AM
kilroy kilroy is offline Converted PDF to Word - Editing nightmare! Windows 10 Converted PDF to Word - Editing nightmare! 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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2016/365 Nightmare with Watermarks - Advice needed steve_lemon Word VBA 4 03-04-2018 09:19 AM
Converted PDF to Word - Editing nightmare! editing text converted from handwriting jsw OneNote 3 11-30-2014 03:41 PM
Converted PDF to Word - Editing nightmare! office word nightmare - essay!!! georgemcn Word 1 07-06-2012 05:36 PM
Converted PDF to Word - Editing nightmare! Word Letthead nightmare dave-mac Word 4 10-04-2011 03:49 PM
Converted PDF to Word - Editing nightmare! Microsoft Word 2003 nightmare Loochery Word 2 05-31-2011 02:04 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:20 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft