A good template for automating word using VBscript can be found here. Keep in mind that to create an object means you might have to change some settings on IE.