|
|
Question : Code for Section Break in VB for Word
|
|
Hi
I see from an earlier answer that the character code ^m can be used to find and delete all page breaks .....
Sub DelPagebreaks()
Selection.HomeKey Unit:=wdStory Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = "^m" '^m is Page break ^w is space .Replacement.Text = "" .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute Replace:=wdReplaceAll End Sub
Is there a code which will delete all the section breaks in the same way ?
Also i want to be able to automaticaly insert section breaks globaly at bookmarks Sec(1), Sec(2), Sec(3)...... etc without the cursor dancing all over the screen and causing it to move and flicker... is there a way to do this ?
Thanks for your help
Gordon
|
Answer : Code for Section Break in VB for Word
|
|
Answer to first question: ^b Looking at second Q
|
|
|
|