Replace each heading with a unique numeric value

A

amitkapoor

I have a huge Word document. I want to replace all of its headings wit
a unique numeric value, say, 10001,10002,10003, and so on. So maybe th
heading is h1 or h2 or h3 or h4 or other higher levels, every headin
will get replaced with a numeric value that will be unique throughou
the document.

Can anyone please help? This is urgent
 
L

Lisa Wilke-Thissen

Hi,
I have a huge Word document.

which version of Word?
I want to replace all of its headings with
a unique numeric value, say, 10001,10002,
10003, and so on. So maybe the heading is
h1 or h2 or h3 or h4 or other higher levels,
every heading will get replaced with a numeric
value that will be unique throughout the document.

You can use SEQ-fields to create the numbers, for example: { SEQ Head }
Then copy the field (Ctrl + C).
Use Ctrl + H (Find/Replace). Show "More".
Search for your styles (Format | Style | ...).
Replace by content of the clipboard, followed by a paragraph mark: ^c^p

After having replaced all the headings, select all (Ctrl + A). Press F9 to
update all fields.
 
A

amitkapoor

This worked great! I tried this but without ^p and failed everytime. No
I know what was wrong.

I am getting greedy so I have another question. How can I add th
headings text immediately after the heading and in the next line afte
heading without any formatting? This way, every heading will have it
plain text version below it
 
L

Lisa Wilke-Thissen

Hi,

"amitkapoor" wrote

[Word version ?]
How can I add the headings text immediately
after the heading and in the next line after
heading without any formatting? This way,
every heading will have its plain text version
below it.

For example:
1. Strg + H | Replace |More
Find what: (Format | Styles | your style)
Replace with: ^&#^&
Replace all
2. Strg + H | Find | More
Find what: #(Format |Styles | your style)
Highlight all items found in ...
Apply a paragraph style (not a linked style)
Press DEL, to delete the #-characters
 

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