Word Template and agent

I have a word template with a header/footer visible. When I programmatically use the template and save it as a new document, when I open the document, the header/footers are not visible. If I do View–>Header/Footer, they are visible. I can’t find a property in VBA for header/footer visibility.

Any Ideas??

Thanks,

Subject: Word Template and agent

Create a macro and show your header/footer interactively. Now have a look at the generated code and enter the equivalent in LS. When you come across constants in the macro, go to the debugger to find their actual values.

Subject: RE: Word Template and agent

Hi Rob,Thanks for the response. I should have explained I did that already and the code is for interactive properties in the Word application. I suppose I could put a macro in the template that sets that property once it’s opened, but I was looking for a way to set it programatically with the document closed. That’s the property I can’t find. I can’t understand why the virgin doc opens with headers and footers and the newly derived document does not. All I’m doing is setting text in bookmarks.