B
baldwin_kevin
I am creating 850 static HTML Web pages by using Mail Merge in
Microsoft Word. (The static Web pages are then compiled into one
metafile.) After I merge the Web page data into Word, I have one, long
document that is separated by 850 section marks.
I have VBA code that allows me to cut a selection from the one, long
document and to paste the selection into individual .htm files. I have
not figured out, however, how to define the 850 separate selections in
the one, long document. I also need help returning to the one, long
document and moving the the next section in it.
Specifically, I need VBA code to do the following things:
1. To use the current insertion point as the beginning of the
selection or range.
2. To extend the selection or range so that it includes everything up
to the next occurrence of the text string "</html>".
3. To call the cut-and-paste VBA sub that I already have. (This VBA
sub creates, saves, and closes the individual file.)
4. To return to the one, long document as the ActiveDocument.
5. To move the insertion point to the beginning of the next section.
6. To repeat this action as long as another "</html>" text string
exists in the one, long document.
Thank you,
--K
Microsoft Word. (The static Web pages are then compiled into one
metafile.) After I merge the Web page data into Word, I have one, long
document that is separated by 850 section marks.
I have VBA code that allows me to cut a selection from the one, long
document and to paste the selection into individual .htm files. I have
not figured out, however, how to define the 850 separate selections in
the one, long document. I also need help returning to the one, long
document and moving the the next section in it.
Specifically, I need VBA code to do the following things:
1. To use the current insertion point as the beginning of the
selection or range.
2. To extend the selection or range so that it includes everything up
to the next occurrence of the text string "</html>".
3. To call the cut-and-paste VBA sub that I already have. (This VBA
sub creates, saves, and closes the individual file.)
4. To return to the one, long document as the ActiveDocument.
5. To move the insertion point to the beginning of the next section.
6. To repeat this action as long as another "</html>" text string
exists in the one, long document.
Thank you,
--K