View Single Post
 
Old 01-25-2022, 12:40 PM
Peterson Peterson is offline Windows 10 Office 2019
Competent Performer
 
Join Date: Jan 2017
Posts: 141
Peterson is on a distinguished road
Default

It's not entirely clear what you're trying to do. If you just want to delete the headings, then you can do this without a macro:
  1. Press Ctrl + Alt + Shift + S to show the Styles pane
  2. Hover over the Heading 5 style, then click the down-facing arrow that appears on the right side
  3. Select Select all # instance(s) (for large docs, sometimes the number of instances won't be displayed)
  4. Press the Delete key
Or are you trying to delete just the text that follows a Heading 5 heading? Both the heading AND the text? If also text, how much text? Until the next lower-numbered heading?
Reply With Quote