![]() |
#2
|
||||
|
||||
![]()
Having a macro create a selection in a header is iffy at best (and if you ever actually need it, a better way is ActiveWindow.View.SeekView). Here, though, you're better off replacing your entire second loop with just this:
Code:
For Each xHeader In xSec.Headers xHeader.Range.Find.Execute FindText:="^p^p^p", ReplaceWith:="^p^p", Replace:=wdReplaceAll Next xHeader |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
a macro to replace paragraph mark with a space applies effect on paragraph marks after the selection | drrr | Word VBA | 2 | 08-24-2021 03:05 AM |
![]() |
booneyrex | Word | 8 | 03-04-2021 04:15 AM |
![]() |
kikola | Word VBA | 13 | 05-26-2020 06:21 AM |
![]() |
pwangdel | Word | 3 | 11-03-2011 06:10 AM |
![]() |
Caroline | Word | 2 | 02-22-2011 10:39 AM |