writing a macro in ms word

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

anjali5

Thread Starter
Joined
Jan 19, 2013
Messages
2
Hi All,

I want to write a macro in MS word that insert page break in the ms word document where ever there is a sentence called
----PAGE BREAK--- in the word document

I have around 200 page word document where there are at least 100 PAGE BREAK sentences in the document. I want the macro that inserts the page break wherever the PAGE BREAK sentence is seen.
Also, I want to write "THIS IS A DRAFT DOCUMENT" as the HEADER and FOOTER for the entire document.

any help will be greatly appreciated.

-anjali
 
Joined
Sep 4, 2003
Messages
4,912
Based on what you describe I believe you can use a simple find and replace.

Find Value: ----PAGE BREAK---
Replace Value: ^m



Rollin
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top