Results 1 to 5 of 5
  1. #1
    4 Star Lounger
    Join Date
    Mar 2001
    Location
    Bismarck, ND, USA
    Posts
    451
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Word Form Starts on Page 9 (2003, sp1)

    I have a multipage Word form template with some ASK and REF fields. There is an autonew macro so the ASK and REF fields are completed when a document is started based on the template. The first fill-in field is selected, but it is on page 9. The user sees page 1. Is there an easy way to have the document display the first fill-in field page?

    TIA
    egghead

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

    Re: Word Form Starts on Page 9 (2003, sp1)

    You could insert a line in the AutoNew macro (before the line that causes the Ask/Fillin field to be activated):

    Selection.GoTo What:=wdGoToPage, Which:=wdGoToAbsolute, Count:=9

  3. #3
    4 Star Lounger
    Join Date
    Mar 2001
    Location
    Bismarck, ND, USA
    Posts
    451
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word Form Starts on Page 9 (2003, sp1)

    That's exactly what I needed! It's one of those searches that I couldn't find the right terms for! Do you have any recommendations for where I could find code snippets and descriptions?

    Thank you!
    egghead

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

    Re: Word Form Starts on Page 9 (2003, sp1)

    The VBA help can be annoying, but it does contain lots of information and code samples. If you type goto and press F1, for example, you'll learn how GoTo works.
    The Word MVP site is very useful.

  5. #5
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Word Form Starts on Page 9 (2003, sp1)

    To save hard-coding the page number in your Macro, you could put a bookmark in the appropriate place and use
    Selection.GoTo What:=wdGoToBookmark, Name:="mybookmarkname"

    StuartR

Posting Permissions

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