The mail merge
A mail merge in Word (2003) requires two documents. The first is the template, the second is the data to be merged. We shall use this to generate multiple Web pages.
Open a New Document in Word
Copy and Paste in your HTML with blank space for the title and the main panel text.
Mine looks like this
In Word (2003), Go Tools > Letters and Mailings.
Select Show The Mail Merge Toolbar.
Click on the left most toolbar button (Main document setup)
Select Normal Word document
Click on the next toolbar button (Open Data Source)
Your saved table is usually in the Recent Documents list. Select mergedata.doc
Now put your cursor after the <div id= “headingtxt"> tag in your template and click on the sixth toolbar button (Insert Merge Field). With Title highlighted, click on Insert.
Next, move your cursor to after the div id="paneltxt"> tag and repeat the process, only this time select the paneltxt field to insert.
Now you can carry out the merge. I use the button labelled “Check for Errors" and select the middle option, carry out the merge, pausing to report each error as it occurs.
Word obliging produces a page for each row of your table.
To save as a web page, I open Notepad. Then I go to page 1 of my merged document, select the text on the first page, and cut it before pasting the selected text into Notepad.
From Notepad, use File > Save As to save the file. Give it a filename with a .html extension. You can see my results here
To save the next page, delete the page break in your merged document and repeat the process.
This way you can quickly construct a whole raft of similar pages.