Re: Can I Automatically Insert Section Breaks?
your post with the
code that works like a charm was sitting pretty here:
"Works like a charm" ?? [blush] why, thank you! :-)
You might want to caveat your code by stating that your code converts
the Paragraph style in question into section breaks that start on new
AFAI thought from the code, it moved the insertion point ("selection")
__before__ the beginning of the Heading 1 para; I tried this out on a
dummy doc with 5 H1 lines and interspersed dummy text; it seemed to
work perfectly; 5 section breaks inserted, 5 H1s still present. Did
you have some sort of "eaten-up heading" problem with it?
If the requirement is conversion into continuous section breaks,
all one needs to do is replace "wdSectionBreakNextPage" in the line
"sel.InsertBreak WdBreakType.wdSectionBreakNextPage" with
"wdSectionBreakContinuous".
Not to detract from your helpfulness, but I thought that was quite
obvious. That's one nice thing about the VB family of languages, and
Word VBA - the code is quite readable! :-)
IAC, if the OP failed to understand it, she could have asked.. and
received the answer.
That little snippet of code that you posted seemed to me to be the
perfect solution to the OP's query. Not sure why she didn't acknowledge
that or even why others who posted subsequently on this thread seemed to
ignore that completely.
I thought so too, and it was frustrating - very! There are times when
I post guesses or shots in the dark (hey, there's so much I don't
know, and probably never will) and I can understand those being given
zero attention. This, in contrast, was a tested and working solution
that was apparently ignored... I mean, why post to a list if you don't
want the answers to a query...
Regards,
Ed.
On 10/17/06, Jayaseelan Pannirselvam <jayaseelan -dot- pannirselvam -at- ite -dot- com -dot- au> wrote:
Ed,^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Unless I'm missing something (or perhaps you're missing something and my
browser has some special page-serving capabilities), your post with the
code that works like a charm was sitting pretty here:
http://www.techwr-l.com/techwhirl/archives/0610/techwhirl-0610-00496.htm
l
WebWorks ePublisher Pro for Word features support for every major Help format plus PDF, HTML and more. Flexible, precise, and efficient content delivery. Try it today! http://www.webworks.com/techwr-l
Easily create HTML or Microsoft Word content and convert to any popular Help file format or printed documentation. Learn more at http://www.DocToHelp.com/TechwrlList
---
You are currently subscribed to TECHWR-L as archive -at- infoinfocus -dot- com -dot-
To unsubscribe send a blank email to techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
or visit http://lists.techwr-l.com/mailman/options/techwr-l/archive%40infoinfocus.com
To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com
Send administrative questions to lisa -at- techwr-l -dot- com -dot- Visit
http://www.techwr-l.com/techwhirl/ for more resources and info.
References:
RE: Can I Automatically Insert Section Breaks?: From: Jayaseelan Pannirselvam
Previous by Author:
Re: Can I Automatically Insert Section Breaks?
Next by Author:
Re: Can I Automatically Insert Section Breaks?
Previous by Thread:
Re: Can I Automatically Insert Section Breaks?
Next by Thread:
RE: Can I Automatically Insert Section Breaks?
Search our Technical Writing Archives & Magazine
Visit TechWhirl's Other Sites
Sponsored Ads