![]() |
|
#5
|
|||
|
|||
|
Hi, ADAL! Because of my scarce knowledge of VBA, I would use the following workaround to find cont. section breaks in a selected range:
Code:
Sub Find_ContSectionBrks()
Dim Rng As range
Application.ScreenUpdating = False
Set Rng = Selection.range
With Rng.Find
.ClearFormatting
.Replacement.ClearFormatting
.text = "^12"
.Forward = True
.Wrap = wdFindStop
.MatchWildcards = True
While .Execute
If Rng.Characters.Last.Information(wdActiveEndPageNumber) = _
Rng.Characters.Last.Next.Information(wdActiveEndPageNumber) Then
Rng.Select
Rng.InsertBefore "ContBr"
Selection.range.HighlightColorIndex = wdBrightGreen
Rng.Collapse wdCollapseEnd
End If
Wend
End With
Application.ScreenUpdating = True
Set Rng = Nothing
End Sub
|
| Tags |
| page breaks |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
2 frustrating bugs in Word 2019 draft view - page number in status bar and invisible page breaks
|
sidr | Word | 19 | 01-15-2025 03:23 PM |
| MS Word - can I automate page breaks after every 150 words??? | ninose | Word | 4 | 09-05-2020 12:13 PM |
Avoid continous breaks turn into page breaks
|
sponge | Word | 3 | 09-14-2017 12:11 PM |
Hidden page breaks and section breaks
|
jrasicmark | Word | 3 | 06-02-2014 11:28 PM |
| Deleted Section Breaks Changes Page Breaks | Brantnshellie | Word | 0 | 02-01-2009 09:22 PM |