+ Reply to Thread
Results 1 to 8 of 8

Page Break Preview with specific word

  1. #1
    Registered User
    Join Date
    05-23-2007
    Posts
    41

    Page Break Preview with specific word

    hi, my system is generating multiple reports in one sheet and I need to print each report in separate page. The cell above the last cell is always containing “Other Information”

    please note that not all reports are equal in number of rows, and note that reports number in one sheet are vary

    attached is sample of the report and what it should look like

    regards
    Ady

    TRADE SHEET.xlsx

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Page Break Preview with specific word

    Hi,

    Use this code :

    Please Login or Register  to view this content.
    Regards
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Registered User
    Join Date
    05-23-2007
    Posts
    41

    Re: Page Break Preview with specific word

    thx for the code, it works fine however it adds more breaks in between. the attached was just 3 report however i get 6 pages

  4. #4
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Page Break Preview with specific word

    Quote Originally Posted by melleniam View Post
    thx for the code, it works fine however it adds more breaks in between. the attached was just 3 report however i get 6 pages
    Of course you must delete all existing page break first.

  5. #5
    Registered User
    Join Date
    05-23-2007
    Posts
    41

    Re: Page Break Preview with specific word

    yes all deleted and still get more pages

  6. #6
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Page Break Preview with specific word

    I test using Excel 2003 and 2007, both yield expected result (the file is attached).
    Do you use different file ?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-23-2007
    Posts
    41

    Re: Page Break Preview with specific word

    im using excel 2010

  8. #8
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Page Break Preview with specific word

    If what you want is to get 3 pages for all, then you will not get it, because each report is too long to fit in one page.


    If the paper size is Letter, margin Top and Bottom both 2.5" :
    First report, page 1 : row 1 to 41 (not fit in single page)
    First report, page 2 : row 42 to 55 (page break at expected row : Other Information)

    Second report, page 3 : row 56 to 90 (fit in single page, page break at expected row : Other Information)

    Third report, page 4 : row 91 to 131 (not fit in single page)
    Third report, page 5 : row 132 to 143 (page break at expected row : Other Information)


    If the paper size is Legal, margin Top and Bottom both 2.5" :
    First report, page 1 : row 1 to 53 (not fit in single page)
    First report, page 2 : row 54 to 55 (page break at expected row : Other Information)

    Second report, page 3 : row 56 to 90 (fit in single page, page break at expected row : Other Information)

    Third report, page 4 : row 91 to 143 (fit in single page, page break at expected row : Other Information)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Page Layout (Page Break Preview) is not working with hidden rows in excel.
    By ebin charles in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-31-2013, 03:32 AM
  2. Hiding the page number in page break preview background.
    By I need coffee, wake me up! in forum Excel General
    Replies: 3
    Last Post: 08-01-2012, 03:00 PM
  3. page break preview vs print preview do not match
    By chadgar24 in forum Excel General
    Replies: 1
    Last Post: 05-16-2012, 11:32 AM
  4. Print Preview Doesn't Match Page Break Preview
    By mik7585 in forum Excel General
    Replies: 0
    Last Post: 06-01-2009, 11:32 AM
  5. [SOLVED] Can I remove the 'Page X' label when in Page Break Preview
    By Dave F. in forum Excel General
    Replies: 2
    Last Post: 07-25-2005, 01:05 PM

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