none
There are maybe over 1 thousand sectionbreak, how can remove all of them in one time? Thanks! RRS feed

Answers

  • If it is in MS word.

    Press Ctrl+F -> Select "Use Wild Card" checkbox-In Find What Box - put ^b - In Replace with box keep empty->Select "Replace All"-

    [Do it after keeping a backup]

    • Marked as answer by John Ham Friday, June 22, 2012 10:55 AM
    Thursday, June 21, 2012 1:08 PM
    Answerer

All replies

  • Section breaks in what?

    For the benefit of others, please mark posts as answered or helpful when they answer or assist you in finding the answer. "Don't confuse fame with success. Paris Hilton is one; Helen Keller is the other." - with apologies to Erma Bombeck for paraphrasing her words.

    Thursday, June 21, 2012 12:07 PM
  • If it is in MS word.

    Press Ctrl+F -> Select "Use Wild Card" checkbox-In Find What Box - put ^b - In Replace with box keep empty->Select "Replace All"-

    [Do it after keeping a backup]

    • Marked as answer by John Ham Friday, June 22, 2012 10:55 AM
    Thursday, June 21, 2012 1:08 PM
    Answerer
  • Thanks! I have found it! 

    But if I want to clear all the section break by coding, how can I do?

    Friday, June 22, 2012 10:49 AM
  • In Word window  - > Press Alt+F11->In VBE insert module ->Paste the below.(You may insert module in Project of Current Document or Normal project.If normal project then macro will be available in all word docs .

    Sub RemoveSecctionBreaks()
        
        Dim rng As Range
        
        Set rng = ActiveDocument.Range
        With rng.Find
            .ClearFormatting
            .Replacement.ClearFormatting
            .Text = "^b"
            .Replacement.Text = ""
            .Forward = True
            .Wrap = wdFindContinue
            .Format = False
            .MatchCase = False
            .MatchWholeWord = False
            .MatchWildcards = False
            .MatchSoundsLike = False
            .MatchAllWordForms = False
            .Execute Replace:=wdReplaceAll
        End With
        
    End Sub

    Also, keep a backup of doc before running because many thing depends on section break.

    ---------------------------------------------------------------------------------------------

    Please do not forget to click “Vote as Helpful” if any post helps you and mark as Answer if it solves the issue.

    Friday, June 22, 2012 11:31 AM
    Answerer