Consulting

Results 1 to 3 of 3

Thread: Section Break Changing to a Page Break During Runtime

  1. #1
    VBAX Contributor
    Joined
    Aug 2012
    Posts
    122
    Location

    Section Break Changing to a Page Break During Runtime

    I'll try this again. I have a macro that creates a book compiled of chapters. Each chapter is a stand alone Word document and each is inserted via VBA code (I forget the syntax right now but I can look it up if that is important). Anyway, each chapter has a Section Break so that headers/footers can be reset/new. I've discovered that during run time, the Section Break switches to a Page Break which screws everything up header/footer wise. It apparently reverts to a Section Break when the macro completes. Anyone run across this before?

  2. #2
    VBAX Mentor
    Joined
    Nov 2022
    Location
    The Great Land
    Posts
    450
    Location
    Yes, should probably provide your code. Is it anything like https://www.msofficeforums.com/word-...-document.html
    How to attach file: Reading and Posting Messages (vbaexpress.com), click Go Advanced below post edit window. To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,894
    Location
    And a sample document
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

Posting Permissions

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