+ Reply to Thread
Results 1 to 2 of 2

i would like a macro to copy x time rows based

  1. #1
    Registered User
    Join Date
    06-17-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    14

    i would like a macro to copy x time rows based

    on a value in a column.

    Purpose, I need to print labels from a rough spreadsheet.
    The spreadsheet contains all the data a need to have to make a label including the size, color, fabric, amount and so on. This (the amount of labels) is contained in that row and in the columns that have the exact size like UNI (could be a belt, tie, accessory), XXL, XL, X, M, l, and S. That columns contain the number of times a label should be printed based on that size.
    So I would like a macro that reads that columns and copy them to a new sheet with exactly as many rows as stated in one of the size columns
    Suppose one 1 row say’s value for XXL is 5, I would like that line (row) been copied 5 times with the same info of that row on a next sheet plus an extra line with the header above the row.
    Example included
    And ss you can see in the attached xls it contains a sheet4 with the raw data. It contains format code I don’t want like the lines with the select box, anyway to remove does lines to with a macro?

    Sorry to bother you with such complex question, I am stuck for now.

    More explanation on request, I hope that the included xlsx with 2 sheets gives you an idea.
    Thanks for looking into this.
    Attached Files Attached Files
    Last edited by dversa; 06-17-2009 at 06:00 PM.

  2. #2
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    Re: i would like a macro to copy x time rows based

    Hi
    Try the macro in the attached file
    Ravi
    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)

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