This is definitely not my area of expertise, but in an effort to assist I'll offer my thoughts.
I totally agree with Gerry, you have to solve the logic; however, I don't know how complicated your web pages are. Do the start tags contain more text than the end tags? This obviously causes comparison problems. How many tags are you actually using? With a limited number, I can see how some array comparisons may assist. Is it really necessary to use VBA to solve your problem? With a printout and a pencil, I'm sure I could check simple web pages quite quickly, using my earlier code.
If I was composing stuff, I'd probably enter start/end codes as a "pair" and infill the text and other tags (in pairs) between as required, but maybe I'm being too simplistic.
Regards
MD