Hello Paul,

Thanks for the response. I suspect that my relatively careless use of english has caused a potential confusion. I am really not looking to simply index the document (although you have prompted me to look at the word feature that I don't think I have ever used before).

I am looking at parsing a word document line by line.

In essence I ignore all lines until I get to a tag that tells me I am starting a new group. I process all lines until I get to the next new group marker. In between the two "new group markers" there are a variable number of of "sub event tags" that I need to record as well.

I don't actually have a soft copy of the document to process as yet, this is me trying to see how it might be possible to achieve my goal.

The context is processing a transcript of proceedings. A new witness is called (aka a new group tag) and then a number of events can take place such as examined by "A", cross examined by "B", questioned by Judge, recalled, re-examined etc. until the witness "withdraws" and a new witness is called (aka a new group tag is found)

There are a couple of complexities to worry about but basically that is the process. As I find the tags I need to write them, along with appropriate page number, into what is effectively a summary of the tags which can be called "an index".

What I don't have any clue about is how to process a word document line by line, how I know the last line, how I know the page number etc.

As I alluded to in OP, I have a pretty fair grasp of VBA in the excel worksheet processing mode but no idea about word

John