View Single Post
  #12  
Old September 17th, 2004, 08:34 PM
Jean-Guy Marcil
external usenet poster
 
Posts: n/a
Default

Bonjour,

Dans son message, Jason L écrivait :
In this message, Jason L wrote:

|| Jean-Guy,
||
|| I guess I spoke too soon. When the section break is entered, a large
space
|| is created beneath the word and the next paragraph or sentence. This is
not
|| a huge deal, but the user is unhappy with it.
||
|| Here is the code I am using for the section break:
||
|| Const LookFor As String = "Recommendations:"
||
|| With ActiveDocument.Content.Find
|| .ClearFormatting
|| .Text = LookFor
|| With .Font
|| .Name = "Times New Roman"
|| .Bold = True
|| .Size = 11
|| End With
|| Do While .Execute
|| With .Parent
|| .Collapse wdCollapseEnd
|| .InsertBreak wdSectionBreakContinuous
|| .Collapse wdCollapseEnd
||
||
|| End With
|| Loop
|| End With
||
|| I tried to use something like this to remove the space (which has the
|| paragraph marker tied to the section break in this area), but it's not
|| working. Essentially, it looks like this:
||
|| RecommendationsSection break)
|| Paragraph Mark tied to section break
||
|| (New Text )
||

That is probably due to paragraph spacing. Change the paragraph spacing (The
space after) for the Paragraph Mark tied to section break.

But let's go back a notch.
Why do you want to systematically insert section breaks after each word you
find?

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
ISTOO
Word MVP site:
http://www.word.mvps.org