Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    May 2002
    Location
    Houston, Texas, USA
    Posts
    100
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Section Break Macro (XP)

    Another macro question: I have recorded a macro for inserting a section break, but would like to include commands for turning off Same as Previous for both First Page and regular headers and footers. Can someone help me with code? Thanks.

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

    Re: Section Break Macro (XP)

    ' Insert next page section break
    Selection.InsertBreak Type:=wdSectionBreakNextPage
    With Selection.Sections(1).
    ' Turn off Same as Previous for regular header
    Headers(wdHeaderFooterPrimary).LinkToPrevious = False
    ' Idem for first page header
    .Headers(wdHeaderFooterFirstPage).LinkToPrevious = False
    ' Idem for regular footer
    .Footers(wdHeaderFooterPrimary).LinkToPrevious = False
    ' Idem for first page footer
    .Footers(wdHeaderFooterFirstPage).LinkToPrevious = False
    End With

  3. #3
    2 Star Lounger
    Join Date
    May 2002
    Location
    Houston, Texas, USA
    Posts
    100
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Section Break Macro (XP)

    Thanks again, Hans!

Posting Permissions

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