View Single Post
  #14  
Old September 17th, 2004, 08:49 PM
Jason L
external usenet poster
 
Posts: n/a
Default

Jean-Guy,

Good question. The words Recommendations and Discussion are the beginning
of new sections in this document. No matter how much the merged data
changes, these words always indicate the beginning of new sections. Each
numbered list in the section must start from 1. The insert section breaks
automatically restart the numbering for the following section. This is why
I'm using section breaks.

Here is how it looks before the section break:

Discussion:

1.dsfds
2.sdfdsa
3.sdfsdaf
4.sdfsf
5.dsfsd

Recommendations:
6.dsfsa
7.sdfdsfs
8.dsfdsafsad
9.sdfadfds

after section break is inserted:

Discussion:
1.dsfds
2.sdfdsa
3.sdfsdaf
4.sdfsf
5.dsfsd

Recommendations:
1.dsfsa
2.sdfdsfs
3.dsfdsafsad
4.sdfadfds

Does this help?

TIA,
Jason

"Jean-Guy Marcil" wrote:

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