+ Reply to Thread
Results 1 to 3 of 3

Print title + Dynamic range until empty row

  1. #1
    Registered User
    Join Date
    09-30-2015
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    1

    Print title + Dynamic range until empty row

    Hello everybody,

    I'm doing a colleague a favor by looking into a VBA formula to make her reporting tasks a little easier, poor her, but I need help myself now.

    this is how her tabsheet is set up:

    CVDV_tab.jpg

    this is how the end result should look like in the printer tray:

    CVDV_00_AZ.jpg

    CVDV_00_AR.jpg

    some facts:

    - the values in column B ("APE", "APF", ...) are the 'seperators'. I tried to define a loop where the module selects the data until it finds an empty row, but there are 2 empty rows for each value in column B (e.g. for APE = row 7 & row 11) and it got me confused.
    - the number of rows that need to be printed on a seperate page are dynamic: e.g. for B5 = "APE", one day it's 2 persons, the other day it's more or less than 2.
    - the title in cell D2 should show on each page
    - the number of columns doesn't change

    Could use the help, thanks in advance!
    Last edited by JVAII; 09-30-2015 at 01:56 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Print title + Dynamic range until empty row

    (How to) Upload a Workbook directly to the Forum
    (please do not post pictures or links to worksheets)
    • Click Advanced (next to quick post),
    • Scroll down until you see "Manage Attachments",
    • Click that then select "add files" (top right corner).
    • Click "Select Files" find your file, click "open" click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Click "Done" at bottom right to close the Attachment Manager.
    • Click "Submit Reply"
    Ben Van Johnson

  3. #3
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: Print title + Dynamic range until empty row

    Hi JVAII,

    The following macro should do what I think you want.

    Please Login or Register  to view this content.
    If this has been helpful, please click on the star at the left.

+ 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: 03-10-2015, 10:36 AM
  2. how to print using combobox and make dynamic range of a print area
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-04-2014, 07:26 AM
  3. [SOLVED] Need ‘Set Print Area’ Code for Dynamic Print Range based on Conditions
    By dosbirn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2013, 12:13 PM
  4. [SOLVED] Automatically Print Once Dynamic Print Range is Identified
    By ccowman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2013, 10:34 AM
  5. Chart Title from Dynamic Range Issue
    By a2excel in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-10-2012, 03:41 AM
  6. Print range without empty lines
    By oherbol in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-04-2012, 08:26 PM
  7. Print Titles with Dynamic Print Range
    By Daeghen in forum Excel General
    Replies: 0
    Last Post: 08-01-2011, 12:11 PM

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