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?