View Single Post
 
Old 03-14-2019, 02:43 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

An unfortunate side-effect of deleting ‘Continuous’ Section breaks in Word is that they tend to cause the preceding ‘Next Page’ Section break to be converted to a ‘Continuous’ Section break. A workaround is to convert the Section break to the same kind as the one that precedes it, then delete break. You can do that via Layout>Page Setup>Layout>Section Start.

The following macro automates the process. Simply select a range spanning the unwanted break before running the macro.
Code:
Sub DelSctnBrk()
Application.ScreenUpdating = False
With Selection.Sections
  .Last.PageSetup.SectionStart = .First.PageSetup.SectionStart
  .Last.Range.Characters.First.Previous.Delete
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote