<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=160495903-01102004><FONT face=Arial color=#0000ff size=2>I'm 
using Word automation to create a report. </FONT></SPAN></DIV>
<DIV><SPAN class=160495903-01102004><FONT face=Arial color=#0000ff 
size=2>Opening a template file, and using Find/Replace to substitute various 
tokens with real data.</FONT></SPAN></DIV>
<DIV><SPAN class=160495903-01102004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=160495903-01102004><FONT face=Arial color=#0000ff size=2>This 
sort of thing seems to work:</FONT></SPAN></DIV>
<DIV><SPAN class=160495903-01102004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=160495903-01102004><FONT face=Arial color=#0000ff 
size=2>WordDoc1.Content.Find.Execute(vSearchText, EmptyParam, EmptyParam, 
EmptyParam, EmptyParam, 
EmptyParam,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
EmptyParam, vWrap, EmptyParam, vReplaceText, vAll, 
EmptyParam,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
EmptyParam, EmptyParam, EmptyParam);</FONT></SPAN></DIV>
<DIV><SPAN class=160495903-01102004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=160495903-01102004><FONT face=Arial color=#0000ff size=2>But it 
only finds and replaces in the body of the document, not in the header or footer 
sections.</FONT></SPAN></DIV>
<DIV><SPAN class=160495903-01102004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=160495903-01102004><FONT face=Arial color=#0000ff size=2>Can 
anyone tell me what I need to do?</FONT></SPAN></DIV>
<DIV><SPAN class=160495903-01102004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=160495903-01102004><FONT face=Arial color=#0000ff 
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=160495903-01102004><FONT face=Arial color=#0000ff 
size=2>Paul.</FONT></SPAN></DIV>
<DIV><SPAN class=160495903-01102004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=160495903-01102004><FONT face=Arial color=#0000ff 
size=2>&nbsp;</DIV>
<DIV><BR></DIV></FONT></SPAN>
<FONT face=Arial size=1>
<HR>

<P><STRONG>Attention: </STRONG>The information contained in this message and/or 
attachments from AgResearch Limited is intended only for the persons or entities 
to which it is addressed and may contain confidential and/or privileged 
material. Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon, this information by persons or entities other 
than the intended recipients is prohibited by AgResearch Limited. If you have 
received this message in error, please notify the sender immediately.</P>
<HR>
</FONT>
</BODY></HTML>