Hi
Using VBA, I am replacing text with certain character styles text with another character style. I have paragraphs with a particular style with keep with next/keep lines together/etc. set.
Now, is there any way for the replacement to *ignore* things like 'keep with next', 'page break before'. etc. settings when replacing once style with another?
Thanks.
Robie
replace character style but retain 'keep with next'
-
- 5StarLounger
- Posts: 656
- Joined: 18 Feb 2010, 14:26
-
- Administrator
- Posts: 78484
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: replace character style but retain 'keep with next'
"Keep with next" is a paragraph-level setting, so it can be part of a paragraph style, but not of a character style.
If you replace one character style with another one, it should leave the "Keep with next" setting of the paragraphs involved unchanged.
If you replace one paragraph style with another one, the paragraphs involved will take on the "Keep with next" setting of the "Replace with" style; there is no way to avoid that.
If you replace one character style with another one, it should leave the "Keep with next" setting of the paragraphs involved unchanged.
If you replace one paragraph style with another one, the paragraphs involved will take on the "Keep with next" setting of the "Replace with" style; there is no way to avoid that.
Best wishes,
Hans
Hans
-
- 5StarLounger
- Posts: 656
- Joined: 18 Feb 2010, 14:26
Re: replace character style but retain 'keep with next'
Oh dear. Makes sense. Thanks.HansV wrote:"Keep with next" is a paragraph-level setting, so it can be part of a paragraph style, but not of a character style.
If you replace one character style with another one, it should leave the "Keep with next" setting of the paragraphs involved unchanged.
If you replace one paragraph style with another one, the paragraphs involved will take on the "Keep with next" setting of the "Replace with" style; there is no way to avoid that.