+ Reply to Thread
Results 1 to 2 of 2

inserting page break in ms word using macro

  1. #1
    Registered User
    Join Date
    08-05-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    inserting page break in ms word using macro

    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.

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: inserting page break in ms word using macro

    You don't need a macro.

    For the first part of the problem simply use Find/Replace, where:
    Find = ----PAGE BREAK---
    Replace = ^p

    For the second part of the problem, simply type "THIS IS A DRAFT DOCUMENT" in the page header & footer.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1