Can't find Section Break (New Page) when followed by Table

J

John

Hi,

With Jezebel's kind assistance, I have found how to replace Section Breaks
with Page Breaks. (Search ^b replace ^m) Are those control codes listed
somewhere in Word Help?

But I find that a Section Break(New Page) followed immediately by a Table on
the next page is not found. Is there something unusual about such a section
break which would require me to search for a control other than ^b?

Thanks,

John
 
C

Cindy Meister

For 1: In the Word user interface, Edit/Replace. Click the "More" button.
Click "Special" and choose an entry. That will insert the control code into
the box where the cursor is blinking.

For 2: This is known behavior, since as long as I can remember. There are
just some combinations of things Word has trouble "digesting"...
 
J

John

Thank you Cindy.

Do I take from what you've said that I can't find or goto a SectionBreak
under these circumstances at all using VBA code? As an alternative, could I
somehow prevent users Inserting a SectionBreak into documents based on this
template? e.g. Pop up Dialog box if this is attempted?

John
 
D

Doug Robbins - Word MVP

Create the following macro in the template:

Sub InsertBreak()

MsgBox "Do not use Section Breaks."

End Sub

Then the above message will be displayed if the user selects Break from the
Insert menu. It will not prevent them from inserting a page break by use of
Ctrl+Enter however which they may need to be able to do.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
C

Charles Kenyon

One other suggestion:

Set up one or more styles that have page-break-before paragraph formatting
(and are set for the following paragraph to be body text) and show your
users how to use those to start a new page. Often what they would want would
be a built-in heading style.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide




--------- --------- --------- --------- --------- ---------
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.
 
C

Cindy Meister

Supplementing Doug's reply, for the sake of completeness

I'm sure it would be possible to locate the Section Breaks, just not using
Find/Replace. For example, assuming the problem scenario would be fairly
uncommon, you could do Find/Replace then doc.Sections.Count. If that's still
greater than 1, you can Set rng = doc.Sections(2) (or whatever count is),
collapse the range to its start point, then move the end back one character.
That should put the section break "to the right" of the range, so that you
can delete it. A little experimentation along those lines should give you a
way, if you prefer this route.
 
J

John

Thank for all replies. Very helpful.

john

Cindy Meister said:
Supplementing Doug's reply, for the sake of completeness

I'm sure it would be possible to locate the Section Breaks, just not using
Find/Replace. For example, assuming the problem scenario would be fairly
uncommon, you could do Find/Replace then doc.Sections.Count. If that's
still
greater than 1, you can Set rng = doc.Sections(2) (or whatever count is),
collapse the range to its start point, then move the end back one
character.
That should put the section break "to the right" of the range, so that you
can delete it. A little experimentation along those lines should give you
a
way, if you prefer this route.
 
J

John

One last question. Is it possible to disable the Section Break Types options
in the Insert - Break menu for this template? That will leave the Page
Break, Column Break and Text Wrapping Break?

John
 
D

Doug Robbins - Word MVP

It may be possible to "capture" the type of break that the user is trying to
insert and do something, but I do not know how to do it.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
J

John

I have chosen to use your suggestion using Sub InsertBreak() and created a
Userform identical to the one which normally comes up when selecting Insert
from the menu. The only difference is that I've disabled the Section Break
options and put a small warning note on the form.

It seems to do the job quite well. Thanks for all help.

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top