Passing a form value to MS Word document header

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SWcisel
    New Member
    • Aug 2007
    • 2

    Passing a form value to MS Word document header

    I've been working with VBA for Microsoft Access for a few months now, and now I've got a small task to complete using VBA in Microsoft Word 2003. There are three offices that my company works with, and we'd like to make a certain document pop up a prompt when it loads to ask which office the document will be regarding. The user will select an office, and the value will be passed to a certain spot in the header (the "certain spot" thing isn't important, I'm comfortable compiling a string and passing back the whole thing).

    I'm not sure how to pass the form value back to the parent (specifically in the header), and I'm also not sure how to make a macro run upon opening a document. Any help you guys could give would be greatly appreciated.
Working...