Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Long Documents / February 2004

Tip: Looking for answers? Try searching our database.

a question on multiple sections

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chip Orange - 24 Feb 2004 20:20 GMT
I'm creating a template for a document which will be very complex and have
many sections.  I'm going to have to implement in vba ways for the user to
create, move, or delete a section, and each section will have its own
particular headers/footers.  Therefore, I'm creating and moving each section
with its following section-nextpage code.

This is causing me to end up with a blank page at the end of the document.

The user can print anywhere in this process, and so in order to prevent the
blank page from being printed I thought I would have to intercept the print
commands and print all but the last section.

Is there a better way of handling this?

thanks.

Chip
Charles Kenyon - 24 Feb 2004 20:35 GMT
I doubt you'll get much help unless you specify:

Which version of Word you are using, and

What you are doing with the many sections, that is, why you need many
sections.

You may want to review <URL:
http://word.mvps.org/FAQs/Formatting/WorkWithSections.htm>.
Signature


Charles Kenyon

See the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> I'm creating a template for a document which will be very complex and have
> many sections.  I'm going to have to implement in vba ways for the user to
[quoted text clipped - 13 lines]
>
> Chip
Chip Orange - 24 Feb 2004 21:03 GMT
ok, it's word 2002, and I've read the article you mention (thanks).

We need multiple sections because the headers and footers change with each
section.

Chip

> I doubt you'll get much help unless you specify:
>
[quoted text clipped - 25 lines]
> >
> > Chip
Margaret Aldis - 24 Feb 2004 22:28 GMT
Try setting the starting condition on the final section (the document shell)
to  'Continuous'?

Signature

Margaret Aldis - Microsoft Word MVP
Syntagma partnership site: http://www.syntagma.co.uk
Word MVP FAQ site: http://www.word.mvps.org

> ok, it's word 2002, and I've read the article you mention (thanks).
>
[quoted text clipped - 37 lines]
> > >
> > > Chip
Chip Orange - 25 Feb 2004 15:21 GMT
Yes, that would work, but I'm never sure when the final section is the final
section, so I think I'd have to do this by intercepting the print commands
(or I'd have to get the end users to say when the document is finalized and
cannot be changed any longer, and they won't do it, except for the times
when they did do it and then decided they were wrong and tried to change it
afterwards!!!). ;)

Chip

> Try setting the starting condition on the final section (the document shell)
> to  'Continuous'?
[quoted text clipped - 43 lines]
> > > >
> > > > Chip
Charles Kenyon - 24 Feb 2004 22:53 GMT
> We need multiple sections because the headers and footers change with each
> section.
How do they change? You may want to look into the StyleRef field and use
that to make the changes you need instead of adding sections. It will repeat
the text of the first paragraph on a page in a given style (or if there is
none on the page, the last paragraph in a given style on previous pages).
There are other options for it as well. If each of your chapter headings is
in the Heading 1 style and the change you need in your headers/footers is
the name of your chapter, this works quite handily, without a section break.
You can set the formatting of (for example) Heading 1 to have a page break
before.

It is just that, as you've discovered, adding unnecessary sections makes
editing a lot harder.
Signature


Charles Kenyon

See the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> ok, it's word 2002, and I've read the article you mention (thanks).
>
[quoted text clipped - 37 lines]
> > >
> > > Chip
Chip Orange - 25 Feb 2004 15:24 GMT
thanks, I will go track down some documentation on styleref right away!!!

Chip

> > We need multiple sections because the headers and footers change with each
> > section.
[quoted text clipped - 54 lines]
> > > >
> > > > Chip
Chip Orange - 26 Feb 2004 16:18 GMT
Close, but unfortunately, no cigar!!! :(

We need a blank header at the start of each section, then, second and
subsequent pages do have their own unique header requirements which could be
handled by styleref (thank you).

Is there a way to supress a header for just the current page???

thanks.

Chip

> > We need multiple sections because the headers and footers change with each
> > section.
[quoted text clipped - 54 lines]
> > > >
> > > > Chip
Suzanne S. Barnhill - 26 Feb 2004 17:21 GMT
No easy way, no. Which is why I still use an Odd Page section break between
chapters so I can use "Different first page" in each chapter/section. I also
use "Different odd and even," but I still use a StyleRef field to pick up
the chapter title, which allows me to use Same As Previous headings
throughout.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Signature

Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


> Close, but unfortunately, no cigar!!! :(
>
[quoted text clipped - 97 lines]
> > > > >
> > > > > Chip
Chip Orange - 26 Feb 2004 18:40 GMT
thanks for the tip; in this case however, no blank pages are allowed in the
document.

> No easy way, no. Which is why I still use an Odd Page section break between
> chapters so I can use "Different first page" in each chapter/section. I also
[quoted text clipped - 121 lines]
> > > > > >
> > > > > > Chip
Suzanne S. Barnhill - 26 Feb 2004 23:06 GMT
Well, then just use Next Page instead of Odd Page.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Signature

Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


> thanks for the tip; in this case however, no blank pages are allowed in the
> document.
[quoted text clipped - 90 lines]
> > > > > >
> > > > > > What you are doing with the many sections, that is, why you need

> > many
> > > > > > sections.
[quoted text clipped - 50 lines]
> > > > > > >
> > > > > > > Chip
Chip Orange - 27 Feb 2004 14:47 GMT
thanks; that's what I'm doing at the moment, but I'm ending up (since each
section *must* be movable anywhere within the document) with an extra blank
page at the end of the document.  I really started this thread trying to
find out what was the best way of dealing with that.

My only thought has been to intercept the printing command with my own vba
routines, which print all of the document except for the last page.

Do you have any other ways of dealing with this extra blank page at the end?

thanks.

Chip

> Well, then just use Next Page instead of Odd Page.
>
[quoted text clipped - 168 lines]
> > > > > > > >
> > > > > > > > Chip
Margaret Aldis - 27 Feb 2004 15:18 GMT
Hi Chip

If you are moving the sections via VBA anyway, how about finishing up by
making the last section (the one following the last real section break,
which you need to move around with your text) a continuous start?

ActiveDocument.Sections
_(ActiveDocument.Sections.Count).PageSetup.SectionStart _
=wdSectionContinuous

Or you could place this in the intercept of FilePrint.

(I still think if you set this once for the document and then move your
sections around complete with their ending section break you should only
need to set the 'empty document' section up to continuous once, but this
should save any doubt, anyway).

> thanks; that's what I'm doing at the moment, but I'm ending up (since each
> section *must* be movable anywhere within the document) with an extra blank
[quoted text clipped - 198 lines]
> > > > > > > > >
> > > > > > > > > Chip
Chip Orange - 27 Feb 2004 21:28 GMT
Yes, thanks, I think I can do this; I'll have a look as I would need to undo
it if the last section is moved, and I would need to undo it if a new
section was added at the end, but I'll think on it.  It might just be easier
to intercept file print and do it there (which is still easier than what I
had planned (not printing the last page)).

thanks.

Chip

> Hi Chip
>
[quoted text clipped - 174 lines]
> > > > > > > > >
> > > > > > > > > You may want to review <URL:

http://word.mvps.org/FAQs/Formatting/WorkWithSections.htm>.
> > > > > > > > > --
> > > > > > > > >
[quoted text clipped - 53 lines]
> > > > > > > > > >
> > > > > > > > > > Chip
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.