+ Reply to Thread
Results 1 to 3 of 3

Set Page Breaks automotically based in criteria

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,715

    Set Page Breaks automotically based in criteria

    I have a macro to preview the range before printing and to set page breaks


    When in Page preview, I have to manually set the page break lines and the macro is not setting them correctly

    I would like the page breaks to appear as follows:


    1) Where Other appears in Col H, page break to be below this
    2) Where Amount PAYABLE/(Refund) is in Col E page break to be below this


    It would be appreciated if someone could assist me

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Howardc1001; 05-22-2020 at 11:33 PM.

  2. #2
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Set Page Breaks automotically based in criteria

    Hi Howard,
    you can do something like this, but the problem is that the automatic pagebreaks (which cannot be removed) are set before the manual pagebreak, simply because the printable range is bigger than you want to print within the manual breaks. It's better to delete some of the blank lines.
    Please Login or Register  to view this content.
    Cheers
    Erwin
    I started learning VBA because I was lazy ...
    Still developing.... being more lazy...

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,715

    Re: Set Page Breaks automotically based in criteria

    Thanks for the help, Erwin

+ 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. inserting page breaks based on cell text
    By barngirl in forum Excel General
    Replies: 1
    Last Post: 02-13-2014, 10:06 PM
  2. [SOLVED] Macro to Insert Page Breaks based on 1st Word in a Cell
    By zcanderson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2013, 03:38 PM
  3. Page breaks based on results from Lookup
    By Deschutes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-16-2012, 02:08 AM
  4. Adding page breaks based on cell contents
    By WasWodge in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2010, 10:55 PM
  5. Replies: 1
    Last Post: 03-15-2009, 06:08 PM
  6. Hard page breaks being replaced by soft breaks in the wrong place
    By JDavies in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-14-2008, 10:28 AM
  7. Inserting Page Breaks on relative Rows based on Data
    By Tirren in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-29-2008, 07:38 PM
  8. [SOLVED] Page Breaks based on cell data
    By Josh Craig in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-05-2006, 10:10 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