+ Reply to Thread
Results 1 to 4 of 4

Paste Every Nth Row

  1. #1
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Paste Every Nth Row

    I have a large data sheet, around 8,000 rows. I need to be able to copy the data and paste it into a client provided template. The template is already pre populated with entries on every other row, so I need to be able to copy my data and paste it into every other row of the template. I've attached a simple example to show how this needs to work.

    I also need the flexibility to be able to enter a different number, via a user entry box, because sometimes, the client supplied templates will have two rows of pre populated data, so I would then need to paste my data evey third row and so on.

    Is there any way to achieve this?

    Many thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Paste Every Nth Row

    Here's a basic macro to try:

    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Paste Every Nth Row

    Hi Ron,

    That seems to work perfectly, many thanks. Is there any way of being able to introduce a user entry dialogue window, to allow the entry of the actual groupings. The data entry will eventually need to be done by people who are non VBA savy, who wouldn't understand how to edit code.

    Thank you for your help...

  4. #4
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Paste Every Nth Row

    Also, it would need to work independently of the row numbers being copied and pasted as these will vary between templates...

    Many thanks once again.

+ 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