Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Word Header/Footer

Status
Not open for further replies.

JCScoobyRS

IS-IT--Management
Nov 20, 2002
15
US
Is there a way to create a Word Document that will have a TextBox that once filled in will automagically fill in all other associated TextBoxes with same information? Thanks, Jeremy
 
Maybe I am not understanding your question correctly. However, with the title "dynamic word header/footer" I assume you want to set the header and footer fields with code.

The following would accomplish that goal:

'-------------------------------------------
With ActiveDocument.Sections(1)
.Headers(wdHeaderFooterPrimary).Range.Text = "Header text"
.Footers(wdHeaderFooterPrimary).Range.Text = "Footer text"
End With

'-------------------------------------------

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top