+ Reply to Thread
Results 1 to 2 of 2

VBA Dynamic Page Break to retain a range when printing

  1. #1
    Registered User
    Join Date
    09-02-2014
    Location
    Virginia, USA
    MS-Off Ver
    2010
    Posts
    38

    VBA Dynamic Page Break to retain a range when printing

    Hi, I am looking to create a dynamic page break that ensures about 20 rows are not split into separate pages when printing (summary of an estimate). I already have a button created that the user presses which selects the desired rows to print so that the user doesn't print the whole sheet (there are columns to the left and right that we don't want printed). I want to incorporate VBA code that inserts a page break if needed to keep cells together but doesn't insert it (and deletes if one exists from a previous print) if the cells are already going to print on the same page (aka don't have an unnecessary page printed). I know how to insert the page break and delete the page break, but I don't know how to check if an automatic page break will occur between the two named cells on my spreadsheet.

    Here is what I have so far:
    Please Login or Register  to view this content.
    Last edited by drewmey; 09-24-2015 at 09:58 AM.

  2. #2
    Registered User
    Join Date
    09-02-2014
    Location
    Virginia, USA
    MS-Off Ver
    2010
    Posts
    38

    Re: VBA Dynamic Page Break to retain a range when printing

    Figured it out myself. But here it is if anyone out there wants it one day!

    Please Login or Register  to view this content.

+ 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. Replies: 3
    Last Post: 06-03-2015, 12:04 PM
  2. Replies: 1
    Last Post: 01-28-2013, 02:14 AM
  3. Excel 2007 : Page break set in printing function
    By nivloc in forum Excel General
    Replies: 1
    Last Post: 10-03-2011, 05:39 PM
  4. Page Break Printing
    By jelamb1325 in forum Excel General
    Replies: 7
    Last Post: 02-21-2008, 12:22 AM
  5. printing big cells cut by a page break
    By erasmo52 in forum Excel General
    Replies: 0
    Last Post: 03-04-2007, 04:14 PM
  6. Printing: Page break preview - need help
    By tkh in forum Excel General
    Replies: 3
    Last Post: 01-23-2007, 08:38 PM
  7. printing and page break question
    By jenreb1 in forum Excel General
    Replies: 1
    Last Post: 09-14-2006, 04:14 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