+ Reply to Thread
Results 1 to 8 of 8

Help with Page Breaks

  1. #1
    Registered User
    Join Date
    07-20-2018
    Location
    United States
    MS-Off Ver
    10
    Posts
    5

    Question Help with Page Breaks

    First, some background:

    My company has recently transitioned into using a new accounting software that we are having some troubles adjusting to. The check registers (a detailed report about how much is owed to different vendors and what check it is to be assigned to) that the new software runs are not formatted well when printed. You can export the reports as an excel file, but they are formatted poorly and contain a bunch of useless information. I created a new file that you can copy and a paste the contents from the exported excel file and a macro will format it in a more desirable way. All the information (including the subtotal) is just copied values and no formulas are involved. The check report will vary in the number of line items and different vendors day by day, which creates a challenge when creating the macro.

    The issue: I have been asked to create a page break so that the data for each check is printed on a separate page (i.e. after each subtotal). I tried messing around with the "Subtotal" tool under the "Data" tab to create a page break after each subtotal hoping I could just record it and add it on to the existing Macro, but it just created a mess because of the way I had to format the new check register based on how it is originally printed. I was wondering if you all could offer any solutions for being able to create that page break after each subtotal with a repeated heading (lines 1-4) at the top that would work for this specific format of a table. I have included pictures of an example of the check register report after being formatted by the macro. Numbers and account names have been changed drastically for privacy.

    If more information is needed, just ask and I will reply. Thank you!
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    07-20-2018
    Location
    United States
    MS-Off Ver
    10
    Posts
    5

    Re: Help with Page Breaks

    I have an idea for a solution but am not sure if it's possible:

    Is there a code that could insert a page break after an instance of 2 blank rows, since the only occurrence of 2 blank rows is right where I need a page break?

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,519

    Re: Help with Page Breaks

    If you could add a sanitized worksheet with more data showing, that would help so we can test the possible suggestions.

  4. #4
    Registered User
    Join Date
    07-20-2018
    Location
    United States
    MS-Off Ver
    10
    Posts
    5

    Re: Help with Page Breaks

    I'm assuming by a sanitized worksheet you mean an example of the worksheet that is directly imported from the software before being run by the formatting macro. Here it is.
    Attached Images Attached Images

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Help with Page Breaks

    Hi kelinj
    Welcome to the Forum!!!
    If the Image attached to your 1st post is your desired output please attach that File (not a picture)...adding a couple of additional Vendors would be helpful.

    Please attach a sample workbook the Structure of which is the same as your actual workbook.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    INCLUDE ANY CODE YOU'RE USING OR HAVE TRIED.

    Remember to desensitize the data.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  6. #6
    Registered User
    Join Date
    07-20-2018
    Location
    United States
    MS-Off Ver
    10
    Posts
    5

    Re: Help with Page Breaks

    Got it, thank you. Standby.

  7. #7
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,519

    Re: Help with Page Breaks

    Would this not do what you need?
    Please Login or Register  to view this content.
    BTW, sanitized means no personal info like names, addresses, phone numbers, email addresses etc
    Last edited by jolivanes; 07-20-2018 at 04:12 PM.

  8. #8
    Registered User
    Join Date
    07-20-2018
    Location
    United States
    MS-Off Ver
    10
    Posts
    5

    Re: Help with Page Breaks

    That worked! Thanks!

+ 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: 1
    Last Post: 06-28-2017, 11:28 AM
  2. Clear all page breaks, then insert new breaks at change in data
    By Alex0929 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-09-2014, 03:12 PM
  3. [SOLVED] I can't move my page breaks in Page Break Preview
    By btaft in forum Excel General
    Replies: 7
    Last Post: 05-14-2014, 09:53 AM
  4. Removing Existing Page Breaks and Inserting a Page Break every third Total Line
    By Kalvas in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-17-2013, 05:12 AM
  5. Page breaks issue for Page number function
    By ngkachun01 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-03-2013, 03:25 AM
  6. Replies: 1
    Last Post: 03-15-2009, 06:08 PM
  7. 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

Tags for this Thread

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