To summarize what I am trying to achieve, I need to focus on all headers/footers of the document to search for specific strings and do some actions depending on the strings I find. I only want to skip those headers and footers that are linked, to save processing time as I know they have already been processed before.
I thought that going through the different sections would be a good start, so I simply go to the header of each section to process whatever I need to do. If the header is linked to the previous one, I want to skip it. That's it.

I am perfectly that my code may not be the best, and that most of you would be able to improve it a lot. I am not a professional programmer! ;-)

Now, when the selection (i.e. the strings I am playing with) is in a header, I need to know what state the header is. I obviously got confused by the vba help, and I understand my method is completely wrong.
Please advise. What would be the best and most efficient way to do what I need?