Results 1 to 3 of 3
  1. #1
    Frank
    Guest

    Word 2000's new page setup feature?

    I'm building and converting a document (8X11) to be in a booklet format (5X8); 95% of the time, the code works fine except this line of code: "ActiveDocument.Sections(numSection).PageSetup.Two PagesOnOne = True"
    will misbehave at times; causes a page break to move up, and throws off the page numbering. I'm frustrated, can anyone relate?!

  2. #2
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Word 2000's new page setup feature?

    Frank,

    Not having played with this specific feature, I can't offer any specific leads, but some general comments:

    Controlling Word sections via code tends to create a lot of seemingly flaky results; these can usually be pinned down to a statement acting on a specific location in the document that is other than what you are expecting.

    A clunky but effective debug method for these things is to temporarily add in lots of Selection.TypeText and MsgBox statements to track the progress of the code when you test it by stepping through the code line by line - things along the lines of:

    Selection.TypeText Text:="Selection should currently be just after the new section break."
    And:
    MsgBox "We should now be in the footer of the new section."

    It's a clumsy method but helps in visualizing what's going on as all the page setup steps get played out.

    Gary

  3. #3
    Frank
    Guest

    Re: Word 2000's new page setup feature?

    Gary,

    Thanks for your response. I'll give this a try.

    Frank

Posting Permissions

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