Results 1 to 4 of 4
  1. #1
    Star Lounger
    Join Date
    Dec 2002
    Location
    San Francisco, California, USA
    Posts
    54
    Thanks
    6
    Thanked 1 Time in 1 Post

    Headers/Footers (Word 2003 )

    Everyone,
    I need a VBA macro that deletes the next page section break based on the current cursor location. Further, it retains all header and footer settings and ranges for the cursor location before the section break is deleted.
    Thanks.
    Larry

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Headers/Footers (Word 2003 )

    "Retain" really means "copy" in this context. You need a macro that sets section(n-1) to have the same page setup as section(n). I think such code has been posted in the past, perhaps on this or on the Word board. I suppose you also need to decide about the headers and footers if they are not "same as previous" -- what you want to happen when you clear the section break.

  3. #3
    Star Lounger
    Join Date
    Dec 2002
    Location
    San Francisco, California, USA
    Posts
    54
    Thanks
    6
    Thanked 1 Time in 1 Post

    Re: Headers/Footers (Word 2003 )

    I hadn't thought about the problems associated with "Same As Previous." If anyone knows where the code is located, please send a link.
    Many thanks,
    Larry

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Headers/Footers (Word 2003 )

    <P ID="edit" class=small>(Edited by jscher2000 on 19-Jul-05 23:44. )</P>While you're waiting, try our Search feature.

    Update: Here's some code I threw together which just pushes section n settings into section n+1. (See attached Word doc with code module .) If you could post back your refinements, we'll have it for future reference.

Posting Permissions

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