+ Reply to Thread
Results 1 to 4 of 4

automatically add a page break

  1. #1
    Forum Contributor
    Join Date
    06-28-2016
    Location
    Pennsylvania, USA
    MS-Off Ver
    2013
    Posts
    308

    automatically add a page break

    I am working on a massive workbook and need a way to consistently add in page breaks. I've come up with a formula for a helper column that will "count" where the page breaks need to be, but I don't know much about VBA. Any help?

    My helper column is in this form:

    0
    0
    0
    0
    1
    1
    1
    1
    1
    2
    2
    3
    3
    3
    3
    3
    3
    4
    4
    4
    4
    4
    5
    5
    5

    etc.

    I need a page break inserted every time the number changes.

    Thanks in advance!
    Last edited by TheN; 09-21-2016 at 08:03 PM.

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: automatically add a page break

    Change the A to helper Column you use

    Please Login or Register  to view this content.
    Kind regards
    Leo

  3. #3
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: automatically add a page break

    Similar to Leo's, change column A to suit. Run from a Module with the sheet active. Run on a backup copy as usual when testing code.
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    06-28-2016
    Location
    Pennsylvania, USA
    MS-Off Ver
    2013
    Posts
    308

    Re: automatically add a page break

    Thanks, it worked.

    greatly appreciated.

+ 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] How do I automatically insert a page break?
    By verifier in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2014, 01:43 PM
  2. Find First match value and add page break, findnext value and add page break
    By dwx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2013, 12:58 PM
  3. Replies: 0
    Last Post: 04-15-2013, 04:38 PM
  4. need page break by asking the input file for page break to be done
    By saikumar in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-10-2008, 07:33 AM
  5. [SOLVED] need macro to page break between company names automatically
    By Ms Magers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-04-2006, 11:55 AM
  6. Replies: 1
    Last Post: 10-10-2005, 07:05 AM
  7. automatically insert row at each page break
    By Row in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-09-2005, 12:05 PM
  8. [SOLVED] automatically put in page break after 14 lines.
    By Steved in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2005, 06:05 AM

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