+ Reply to Thread
Results 1 to 3 of 3

Macro to insert lines and copy

  1. #1
    Registered User
    Join Date
    03-20-2007
    Posts
    4

    Macro to insert lines and copy

    I would be grateful if someone out there could help me.

    I have a whole load of data (part number, quantity, location and some other related data). I am going to print labels for all the parts being received.

    My problem is that in order to do this, I have to view the quantity for each line, then insert the corresponding number of lines minus one, then copy the first line down to the insert lines.

    A sample of the data would be:

    QTY
    MB241423 5 40.07 200.35 47230 87f 20% FMS
    MB241429 2 4.13 8.26 40632 87f 20% SUSLK-12
    MB257484 1 0.53 0.53 68422 87f 20% MWP

    The result would look like:

    QTY
    MB241423 5 40.07 200.35 47230 87f 20% FMS
    MB241423 5 40.07 200.35 47230 87f 20% FMS
    MB241423 5 40.07 200.35 47230 87f 20% FMS
    MB241423 5 40.07 200.35 47230 87f 20% FMS
    MB241423 5 40.07 200.35 47230 87f 20% FMS
    MB241429 2 4.13 8.26 40632 87f 20% SUSLK-12
    MB241429 2 4.13 8.26 40632 87f 20% SUSLK-12
    MB257484 1 0.53 0.53 68422 87f 20% MWP



    I have 682 lines and a total quantity of 2227.

    So this would take a long time to do manually...

    This forum has been great to me in the past. I hope that you can help me again.


    Thanks,


    Adrian

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Try this macro

    Please Login or Register  to view this content.
    Martin

  3. #3
    Registered User
    Join Date
    03-20-2007
    Posts
    4

    Thanks a whole bunch

    This works great.
    Thanks Very Much.


    Adrian

+ 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