Thread: [Solved] TOC from page header?
View Single Post
 
Old 11-06-2016, 06:28 AM
pirre pirre is offline Windows 8 Office 2013
Novice
 
Join Date: Nov 2016
Posts: 1
pirre is on a distinguished road
Question TOC from page header?

I have a word document with many pages. At the head of each page there is a text.
Same text can be on many pages. If it's so, the same text is after each other.
I have tried to create a table of contents of this text, but I am stuck completely.

First I wanna create a blank first page. Then I wanna create a table of contents based on the
page header text in the document.

Ex:

"Test text 1 from main page".........Page 1-3
"Test Text 2 from main page".........Page 4
"Test Text 3 from main page".........Page 5-7
*
and so on...

How can I do that with VBA?
Reply With Quote