Merging data into Word page header

  • Thread starter Thread starter Virgil Layne
  • Start date Start date
V

Virgil Layne

I'm trying to create a Word document whose title in the
header is based on selected data from Access. Using both
conventional bookmark and merge field methods hasn't
worked. Word acts as if the header information is disabled
(as in an Access form field disabled). Using the VB
prompts, I don't see a way of opening the header in the
active document, either.
 
From memory, activedocument.sections(99).headers returns the headers in
section 99, as a collection of HeaderFooter objects, no?

HTH,
TC
 
have a look at:
ActiveDocument.ActiveWindow.ActivePane.View.SeekView = wdSeekPrimaryHeader

stTitle = txtName
Application.Selection.TypeText Text:=stTitle

I used this but I had opened a Document Template that may already have had a
header, I dont remember.
 
Back
Top