insert page break macro

P

Phil

I have a large document in which each page is identified as "page 1",
"page 2" etc. However as the pages are not the same I get page breaks
that do not coincide with the page numbers. Is there any way to write a
macro that will insert a page break when it encounters the word "page"

Thanks
 
B

Bill Weylock

You can't just get rid of the manual page 1, page 2 etc and let it happen
automatically?

If not, you don't need a macro. All you need to do is go to EDIT/Replace.
When you get the dialog, click the little down arrow to expand to the full
view. You will see a tab at the bottom that says "Special". Mouse on it, and
you will see that one of the items is "Manual Page Break."

If you select it, you will see that the code it inserts is ^m.

So, if you want your break before Page x, replace Page with ^mPage.

Since you probably also use the word "page" somewhere in the body text, you
will first want to make sure the ones you want to change are distinctive.

Hope this helps.
 
P

Phil Chauvin

Bill;

Works like a charm -
Thanks!!!
-----Original Message-----
You can't just get rid of the manual page 1, page 2 etc and let it happen
automatically?

If not, you don't need a macro. All you need to do is go to EDIT/ Replace.
When you get the dialog, click the little down arrow to expand to the full
view. You will see a tab at the bottom that says "Special". Mouse on it, and
you will see that one of the items is "Manual Page Break."

If you select it, you will see that the code it inserts is ^m.

So, if you want your break before Page x, replace Page with ^mPage.

Since you probably also use the word "page" somewhere in the body text, you
will first want to make sure the ones you want to change are distinctive.

Hope this helps.
 

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