I have been using replaceVariableByText on the document body with no problem. For the first time today I have a Word document with a "variable" in the footer, and it wasn't replaced. Reading the documenation (always a good idea) I see that I have to specify the footer, or header, specifically as a target for the replacement.
The question is, can I combine multiple targets in a single statement, or do I have to have to execute replaceVariableByText 3 separate times to replace in the header, body and footer?