+ Reply to Thread
Results 1 to 2 of 2

Automatically Generate Lines

  1. #1
    Registered User
    Join Date
    11-19-2007
    Posts
    22

    Automatically Generate Lines

    I am trying to generate a delivery form.
    Earlier in the sheet I have listed the descriprion and the QTY required so for example one Cell Would say "Product A" and the Next Cell would be "20".

    On the delivery note I want to have the "Product A" listed 20 times as I have to put a barcode next to each of them.

    Is it possible to duplicate the description by the Qty Number. If so what is the command to do this, I have looked through the forums but cannot find anything remotly close that explains how to do this!

    Thank you in advance!

  2. #2
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686
    You probably need to post your spreadsheet(s) to get a complete solution, but if you can adjust a little VBA code see the attached:

    You can use a Worksheet Change Event to generate these duplicate entries the listed number of times.

    The code assumes you want the duplicate data directly below the existing data. (you can direct this to any other cell) And it is working off the Change Event of a quantity entry in Column B.
    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