+ Reply to Thread
Results 1 to 2 of 2

Loop and Printing Help

  1. #1
    Registered User
    Join Date
    11-12-2013
    Location
    Chaska, MN
    MS-Off Ver
    Excel 2010
    Posts
    24

    Loop and Printing Help

    Hello,

    Attached I have a form that has been causing me problems. I want to fill in information from another sheet onto this form but I cannot figure out how to do it. The information I need to apply to this sheet is the SKU, the batch run, and the date. I know how to apply the date but I am stuck on the run and sku. The sheet holds 7 columns for the sku meaning that 1 sheet is needed for a batch run of 7. If there is a batch run of 8 then 2 sheets are needed and so on.

    So far in my code I have a Excel Sheet that has places to write down the information and a large button. The VBA code runs off that button, opens the attached workbook, adds the information, then prints and closes the attached workbook.

    What I need is the sheets printed and columns filled to be dependant on the batch run number. Meaning that if a sku is being made 7 times then it would only require one sheet to be filled out and printed. If there was 8 runs for an sku then 2 sheets need to be pritned out one with 7 columns of info and another with only one column of info. If there is 2 runs then one sheet is printed and 2 columns are filled out.

    Currently to get the amount of sheets I need to print I use this code but besides adding the date this is as far as I have gotten.

    Please Login or Register  to view this content.
    Is there anything that can get me started as how to do this?
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-12-2013
    Location
    Chaska, MN
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Loop and Printing Help

    Hello,

    I figured it out after hitting my head against the desk all day. Here is the code I used if anyone runs into something similar

    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. Create Loop for Printing Reports
    By tjanda in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-02-2013, 04:01 AM
  2. How do you loop through a range of data printing after each row?
    By LeanRopp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2010, 06:49 PM
  3. VB for Loop & Printing
    By ntowne in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2010, 09:20 PM
  4. Do Until Loop Question, for Printing
    By Renee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2006, 05:50 PM
  5. Loop printing
    By George Hill in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2006, 12:30 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