Add section break before every Heading 1

G

Guest

In order to force footnotes to begin renumbering, I want to automatically put
a section break before every heading with Heading 1 style.

A style can have a 'page break before' but not a 'section break before'. I
thought I could set 'page break before' and then do a find-and-replace,
replacing every page break with a section break. But that fails for two
reasons. You can't search on these automatic page breaks, and even if you
could, you can't put 'section break' in a replace field.

Anyone have an idea how to do this?
 
S

Suzanne S. Barnhill

You can actually use a section break as the replacement text if you (a)
select and copy a section break formatted as desired (that is, Next Page,
Odd Page, etc.), and (b) use ^c (Clipboard contents) in the "Replace with"
box.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
G

Guest

Well that's useful to know. Thanks Suzanne!

I still can't Find the auto page break that comes before my Heading 1. And
if I Find-and-Replace on the style Heading 1, the text itself gets replaced
(as I'd expect) with my clipboard contents.

Is there some special character that can go in the Replace box that means
'whatever text was found during the Find.' Then I could put '^c' followed by
this special character, and I'd be there.
 
J

Jay Freedman

Yes, the code ^& represents the text that was found. So the
replacement expression you want is ^&^c .

All these codes are listed in the dialog. Click the More button to
expand the dialog, and then click the Special button at the bottom.
The list is different depending on whether the cursor was in the Find
What box or the Replace With box just before you click the Special
button. The ^& code is only on the Replace With list, identified as
"Find What Text".

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
G

Guest

I looked at that Special list several times. I don't know why I didn't notice
"Find what text". This all lets me do what I need. Thanks Suzanne and Jay.

Now if I can find a way to stick it all in a macro, I'll be in great shape.
(I need to do this frequently.)

In a macro, I'd have to put the section break in the clipboard. Hmmm. Don't
know how to do that. Or maybe better would be some kind of loop on Find,
MoveLeft, and InsertBreak. I need to learn how to loop on Finds.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top