title: Can't replace the footer text in a word application through Delphi
body: <p>I am trying to replace text in a footer, I am using the following code through which i can replace the normal content (body) but not the content in the footer/header</p>
  
  <pre><code>myWinWordApp := CreateOLEObject('Word.Application');
  myWinWordApp.visible := true;
  myWinWordApp.documents.open('c:\ole.doc');
  myWinWordApp.Selection.Find.Text :=  'oo';
  myWinWordApp.selection.Find.Replacement.Text := 'aa';
  myWinWordApp.Selection.Find.Execute(Replace := 2);
  </code></pre>
  
  <p>any help is highly appreciated. Thanks in advance</p>