Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-16-2012, 07:32 AM
KenBrown KenBrown is offline Display contents of global variable in headers Windows 7 64bit Display contents of global variable in headers Office 2010 64bit
Novice
Display contents of global variable in headers
 
Join Date: Aug 2012
Posts: 1
KenBrown is on a distinguished road
Default Display contents of global variable in headers

I have a document (Word 2010) that has about 20 sections and 20 unique headers/footers.

I'd like to change one thing in all the headers from time to time but since they are unique I currently have to edit each one separately.

I was wondering if I could assign a value (like 'Revision A1') to a field code or variable of some kind, then reference that field code or variable in each of the headers.

If so, I could simply change the value of the field code or variable and all my headers would be updated.

Is there a way to do this?
Reply With Quote
  #2  
Old 08-16-2012, 07:44 AM
Charles Kenyon Charles Kenyon is offline Display contents of global variable in headers Windows Vista Display contents of global variable in headers Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,082
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

The simplest way to do this is with a DOCPROPERTY field. You can make a custom document property to hold your information.

Otherwise, look into the STYLEREF field. If you put your information on say your cover page and format it with a unique character style (which may look the same as surrounding text), you can use the STYLEREF field to repeat that information wherever you want.

If the only reason for having unique headers/footers is so they can reflect the contents of the section, the STYLEREF field will do that as well in one header/footer continued through all your sections.
http://office.microsoft.com/en-us/wo...in=HA102110133
Reply With Quote
  #3  
Old 08-16-2012, 07:47 AM
Charles Kenyon Charles Kenyon is offline Display contents of global variable in headers Windows Vista Display contents of global variable in headers Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,082
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

You can access document properties, document variables, and other repeating data fairly easily.
See Bookmarks, variables, document properties and content controls editor
and "Content Control/Variable/Bookmark and Document Property Tools" Add-In (two versions of instructions for the same Add-In.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Manual Table of Contents - Chapter Headers are Images godofpool Word 1 07-04-2012 03:39 PM
Display contents of global variable in headers Run-time error '91': Object variable or With block variable not set tinfanide Excel Programming 2 06-10-2012 10:17 AM
Display contents of global variable in headers Global Settings lefttoday Word 3 02-03-2011 03:34 PM
Display contents of global variable in headers Global template ryalls3857 Word 1 12-27-2010 05:45 PM
Include headers in table of contents bwhight Word 1 10-10-2006 08:59 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:23 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft