+ Reply to Thread
Results 1 to 3 of 3

add sheet and change print area based on number of line items in template

  1. #1
    Registered User
    Join Date
    11-07-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    51

    add sheet and change print area based on number of line items in template

    I hope this is clear enough to get what I need across

    I currently run a template macro (attached) and my customer has asked me to print a "CERT" (sheet2 named CERT) for each line item in column B on sheet1.

    If there are two "SHIPPER REF NO" in column B then I need two separate "CERT" (one for each ref no), if there are three, I need three etc.

    It is not important as to whether the macro adds a sheet to the workbook, or just adds an additional page to print on the same sheet.

    I have absolutely NO IDEA where to start to make that happen. I have attached the file, as well as the macro I am currently running for this template. Any and all help is most appreciated.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-08-2012
    Location
    manila, philippines
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: add sheet and change print area based on number of line items in template

    Hi,

    The attached has a macro that I've used if I needed to make separate sheets for each agent. Concept wise, I think this is what you needed.

    Hope this helps
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-07-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Re: add sheet and change print area based on number of line items in template

    That is not exactly what I needed, though it does help a little.

    I have attached a copy of what I need the final product to look like once the information is entered in on the template (SHEET1).

    It would be ok for the macro to populate a second page on the COL-TPA worksheet in place of making a second worksheet also.

    I hope this clarifies.
    Attached Files Attached Files

+ 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. Copy Cell info in a Sheet, to another area, based what the text line starts with?
    By richard11153 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-08-2016, 05:16 PM
  2. Data Input Form with number of line items based on user input
    By j_gideon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2013, 02:54 PM
  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. Combining multiple line items into one line item based on column.
    By mguz018 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-20-2012, 07:22 PM
  5. Setting a Dynamic Print Area on a template.xlsx
    By scaffdog845 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2009, 12:18 PM
  6. I want to change the selected print area but it will not allow me
    By jeclss in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-28-2005, 07:45 PM
  7. Replies: 1
    Last Post: 11-24-2005, 07:29 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