Accessing the Header/Footer Document Variable(s)

  • Thread starter raymond s. norris
  • Start date
R

raymond s. norris

hi-

let me preface the question with the fact that i am not
doing this directly in Word 2002, but rather a 4GL that
has an ActiveX interface to Word.

when i search for all the document variables, i find only
those in the actual document, but not the ones in the
header/footer. however, if i set the value of a document
variable which happens to be in both the document and the
header, BOTH get set. so i can set it iff the variable
also exists in the core document.

how do i get the document variables listed in the
header/footer?

also, does anyone know of a word object model tree or
layout for all the methods and properties online?

thanks,
-raymond
 
D

Doug Robbins - Word MVP

Hi Raymond,

How are you searching for the variables? By using .Find? or by using For
Each?

If the former (which I would not recommend), See the article "Using a macro
to replace text where ever it appears in a document including Headers,
Footers, Textboxes, etc." at:

http://www.mvps.org/word/FAQs/MacrosVBA/FindReplaceAllWithVBA.htm

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top