+ Reply to Thread
Results 1 to 5 of 5

Vba to copy rows based on quantity specified in a cell

  1. #1
    Registered User
    Join Date
    06-05-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    37

    Vba to copy rows based on quantity specified in a cell

    Hello All,

    Hoping someone can help to see if a macro is feasible for this task. Per attachment, The tab called "HC Report" is the input tab where i am hoping based on column A(Quantity), if a Marco can be run to copy the records in the "Result" tab based on the quantity specified. So if quantity = 2 then the results tab will have 2 of the same records.

    Can someone help me develop this Marco if possible ? I searched in YouTube and goggle but did not find anything that would assit completing this task.
    Attached Files Attached Files

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Vba to copy rows based on quantity specified in a cell

    Hi ctguards1987,

    How is this?

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Registered User
    Join Date
    06-05-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Vba to copy rows based on quantity specified in a cell

    Amazing. Can you adjust the code to be google sheet friendly as well? When i try running the macro in goggle sheet, getting an error "Attempted to execute test, but could not save"

  4. #4
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Vba to copy rows based on quantity specified in a cell

    Unfortunately I have no experience with Google Sheets, VBA doesn't work there

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Vba to copy rows based on quantity specified in a cell

    Not the fanciest, my first attempt as a google sheet script, but you could see if this does it for you. As I said not well versed, so it is pretty rudimentary I'm sure

    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. [SOLVED] Percent complete based off quantity finished and quantity remaining
    By BigPaulMc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2022, 02:29 PM
  2. [SOLVED] Lookup Price Based on Quantity Breaks Across Rows
    By Gallegos in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-15-2021, 06:21 PM
  3. Copy rows to new sheet when quantity is entered.
    By SlightlyClueless in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-23-2019, 02:07 PM
  4. insert rows and copy data across sheets - row quantity varies each time
    By Herbo76 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-01-2016, 10:48 AM
  5. [SOLVED] Automatically create and fill rows based on a given quantity
    By Bax in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2013, 09:49 AM
  6. Itemize Product based on quantity into Multiple Rows
    By sostenes in forum Excel General
    Replies: 2
    Last Post: 12-05-2012, 08:52 PM
  7. Replies: 5
    Last Post: 11-23-2009, 06:24 PM

Tags for this Thread

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