+ Reply to Thread
Results 1 to 4 of 4

Copy rows/range and paste n number of times based on last used cell in Column A

  1. #1
    Forum Contributor
    Join Date
    09-04-2007
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    133

    Exclamation Copy rows/range and paste n number of times based on last used cell in Column A

    Hi,

    i am trying to create a macro to run following scenario:

    I have a working sheet with rows 1 to 10 defined as a range block that needs to be copied n number of times. I have created a input message box asking user to "Enter how many times you would like it copied".

    Based on user entry, i would like to copy the range block and paste that block n number of times below the last used cell in column A. I formatted data so that: only starting row of data in a block will be in column A in that way, we can find the last used cell after each insertion easily.

    Any help or direction on this will be greatly appreciated.

    Thanks,
    Kon.
    Last edited by skonduru; 03-31-2016 at 04:41 PM.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Copy rows/range and paste n number of times based on last used cell in Column A

    Is it what you need
    Please Login or Register  to view this content.
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Contributor
    Join Date
    09-04-2007
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    133

    Re: Copy rows/range and paste n number of times based on last used cell in Column A

    Thanks for the input PCI.

    I am close with what i need from your solution. But, i am looking for below specific question as described below with attached as the reference:

    In the attached spreadsheet i defined rows 1 to 6 as a named range, say "ABCD". i have data filled out by user upto row 17 and i have cell A18 filled with helper data (which will help to find the last used value in column A). Now, based on user entry of data in input box, i would like to copy range "ABCD", insert number of rows equal to the rows in range "ABCD" just above helper row and paste the copied range into inserted rows. I would like to do similar process number of times specified by the user in input box.

    Thanks and appreciate your help in advance.

    Kon
    Attached Files Attached Files
    Last edited by skonduru; 03-29-2016 at 01:31 PM. Reason: Typo

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Copy rows/range and paste n number of times based on last used cell in Column A

    Ty next code
    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. Paste a range X number of times based on InputBox Value divided by 4
    By kierstin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 04:22 AM
  2. [SOLVED] Macro to copy/paste cell into same column down a dynamic number of rows
    By rdowney79 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-31-2013, 03:03 PM
  3. Copy and Paste data in column A number of times displayed in column B
    By anthony232 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-15-2013, 05:13 PM
  4. Copy a row and paste it a number of times based on a cell value
    By glrubens in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-02-2013, 12:37 PM
  5. Replies: 0
    Last Post: 05-18-2012, 11:18 PM
  6. copy rows on cell based value and condtionaly paste it to other column
    By sanketgroup in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-30-2011, 09:43 AM
  7. VBA; copy paste number of times based on cell value
    By photopidge in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-25-2011, 03:17 AM

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