Consulting

Results 1 to 5 of 5

Thread: Solved: Custom Page Break in a Imported txt file

  1. #1
    VBAX Regular Jack58's Avatar
    Joined
    May 2004
    Location
    MN
    Posts
    30
    Location

    Solved: Custom Page Break in a Imported txt file

    I have a Very large Txt. file that I need to be able to import into word and place Page Breaks into the file, to make the Document printable.

    Each section of my document has consent of "1REPORT" at the point where I world like to have Microsoft Word Place a Page Break.

    Sure hope someone can help.


    Jack

  2. #2
    VBAX Tutor
    Joined
    May 2004
    Location
    Germany, Dresden
    Posts
    217
    Location
    Hi Jack,
    you could use Search & Replace. Enter "1REPORT" into the search box and into the Replace Box.

    Now place your cursor before or after 1REPORT in the replace box (depending on whether you want the break before or after that word). Expand the S & R Dialog, at the botton there should be a button Other characters (or something like that), there you can select page breaks.
    It will then insert ^m (in the german version, maybe other letters in yours), representing a page break.

  3. #3
    Site Admin
    The Princess
    VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    Nope. It's the same, Steiner.

    ^m
    ~Anne Troy

  4. #4
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    By the way, Jack, you can record that macro and assign it to a toolbar button if you do this often:

    http://www.theofficeexperts.com/officevba.htm#WordVBA will tell you exactly how to do that.
    ~Anne Troy

  5. #5
    VBAX Regular Jack58's Avatar
    Joined
    May 2004
    Location
    MN
    Posts
    30
    Location
    Thanks

    Worked well



    Jack J.

Posting Permissions

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