Results 1 to 4 of 4
  1. #1
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Field code in footers (VBA/Word/2003)

    I will have a document with many sections, and need the footer to be in the form:
    <pre> Section page 17 of 36 Document page 28 of 432</pre>


    In determining the page number within the section, I have placed a bookmark at the start of the section the last page of the preceding section and making use of <!post=Ian Wilson's code ,545,636>Ian Wilson's code <!/post> manage to get the right answer. My problem is two-fold:
    1. <LI>I can't figure out how to embed one field within another in a single line of code; and
      <LI>I don't understand how to insert the combined package of text and fields into the various footers without switching to header/footer view, as demonstrated <!post=here,554,212>here<!/post> by Hans recently.
    Any guidance will be appreciated.
    Regards
    Don

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Field code in footers (VBA/Word/2003)

    Do you really need to do this in VBA? It's much easier to set it manually in a template, it will then automatically be copied to all documents based on the template.

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Field code in footers (VBA/Word/2003)

    See Inserting nested fields using VBA on the Word MVP site.

  4. #4
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Field code in footers (VBA/Word/2003)

    Hans
    <img src=/S/hailpraise.gif border=0 alt=hailpraise width=27 height=22>
    Regards
    Don

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •