>> Hi Denise,
>>
[quoted text clipped - 59 lines]
>
> Does this help and is there any more information I can give you?
Hi Denise,
For the issue of deleting the section breaks along with the text, the answer
is to set up the template so the section break *at the end* of each text
block is *inside* the bookmark and will be deleted with the text. (It isn't
obvious, but all the characteristics of a section -- margins,
headers/footers, page orientation, etc. -- are stored in the section break
at the end of the section, not at the beginning. See
http://word.mvps.org/FAQs/Formatting/WorkWithSections.htm for more
enlightenment.)
For the blanks, it's usually more important to know what's immediately
*after* the blank than before it (the only exception being when the
preceding paragraph has a very large value for the Space After setting).
If the blank is followed by a hard page break, the answer is to delete the
page break. Actually, the initial template shouldn't contain any hard page
breaks, precisely because you can't tell when they'll cause problems like
this. Instead, use the paragraph settings Keep With Next and Keep Together
where necessary.
If it's a Next Page section break, either delete it by having it inside the
bookmark (if you don't need a section break there for other reasons) or
change it to Continuous.
If it's neither, put the cursor in the paragraph immediately after the
blank. Open the Task Pane and select the Reveal Formatting pane. Look for
and eliminate any of these settings from the template:
- Page Break Before
- Keep With Next, if the paragraphs that follow also have it so that the
whole page becomes an indivisible block
- Space Before with a large value (in the hundreds of points), although
this would have shown up in the initial template so it's unlikely
One final comment: The line of code I showed before, using the Range of the
bookmark, accomplishes the same deletion as the two lines in your code, but
it also doesn't move the user's cursor, and if the block is off-screen the
user won't even see the deletion happening. To fit into your code, the line
would be
ActiveDocument.Bookmarks(strBookmark).Range.Delete

Signature
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Denise - 03 Nov 2004 13:29 GMT
>>> Hi Denise,
>>>
[quoted text clipped - 101 lines]
>
> ActiveDocument.Bookmarks(strBookmark).Range.Delete
Hi Jay
Thanks very much for the info. Your advice on section breaks has helped
enormously - so obvious when someone tells you! I'm still messing about
with the blank spaces but the template is so much improved just by the
removal of the section breaks.
Thanks again
Denise Crawley