Do not think tags. That is HTML.
There are two methods to doing this.
1 Use Bookmarks. Go through the document. Select everything from the start of Education, to the JUST BEFORE the next Education. Go Insert > Bookmarks and then give that bookmark a name - say Ed1. Repeat for the next "section" - from the start of Education to the character JUST BEFORE the next one. Set as a bookmark (Ed2).
Once you have all the chunks of text set as bookmarks you can grab them. The important concept here is that bookmarks not only mark a location, they mark a RANGE. That range can be a huge chunk of text.
Next, run code like this:
You did not state if there are more than one Education chunk per document. You did not mention that, if there is one, you are trying to extract one chunk per file, from a bunch of files. That is why we need details to really try and help. If it is ONE chunk per file, through a bunch of files, you will need some Dir logic to loop through a bunch of files in a folder. See my FAQ on FormFields for some file looping ideas.
This extracts mulitple Education chunks from the SAME file. If it is one per multiple file, you would have to adjust accordingly. This extracts multiple chunks into a new document.
Essentially, if it is one chunk in multiple files, you would use Dir to check a specified folder for .doc file. Open each each file and check for EDx bookmarks. if they exist, extract it, and copy to a nwe doc.
[code}Sub ExtractBookmarks()
Dim aDoc As Document
Dim NewDoc As Document
Dim mBookmark As Bookmark
Dim i As Integer
Dim var
i = 1
Set aDoc = ActiveDocument
Application.Documents.Add
Set NewDoc = ActiveDocument
aDoc.Activate
For Each mBookmark In aDoc.Bookmarks()
If mBookmark.Name = "Ed" & i Then
mBookmark.Select
Selection.Copy
NewDoc.Activate
Selection.Paste
' the next could be a section break rather than
' a page break if that would work better
Selection.InsertBreak Type:=wdPageBreak
aDoc.Activate
i = i + 1
End If
Next
Set NewDoc = Nothing
Set aDoc = Nothing
End Sub[/code]
This easily be adjusted to save the new doc file, or whatever.
2. If the word Education is by itself, and it is using a proper unique style, then loop throug the paragraph collection, and make a selection based on the analysis of each paragraph style. If the style is the one you want, move the selection to the start of the paragraph, and set a Range object with that start. Continue on until you find the next instance of the style. Make the End of the Range object that Style Start - 1 (i.e. just to the left of the Style Start. Select that range. Copy and paste to new document.
Anyway, here is a start. With more speciifcs this could, I'm sure be tuned to cover your need.
Gerry