View Single Post
 
Old 10-09-2020, 07:44 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2010
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,527
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

AAn 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