+ Reply to Thread
Results 1 to 4 of 4

Copy column and paste info in every nth cell

  1. #1
    Registered User
    Join Date
    01-28-2011
    Location
    Tulsa, OK
    MS-Off Ver
    Excel 2003
    Posts
    6

    Copy column and paste info in every nth cell

    I want to create a macro that is run after a user copies information from a column. The user would move to another tab, select a cell, and run the macro. The macro would insert the copied information in every 10th cell. Any ideas on the best way to do this?

    Copy
    1
    2
    3
    4
    5


    Paste
    1


    2


    3


    4


    5
    Last edited by johnsjg; 01-31-2011 at 05:28 PM. Reason: format

  2. #2
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Copy column and paste info in every nth cell

    Quote Originally Posted by johnsjg View Post
    I want to create a macro that is run after a user copies information from a column. The macro would insert the copied information in every 10th cell.
    Clarification
    "paste in every 10th cell" ....as in every 10th row of a certain column?

    How large of a range is the original information in?
    Life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.
    John Wright

  3. #3
    Registered User
    Join Date
    01-28-2011
    Location
    Tulsa, OK
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Copy column and paste info in every nth cell

    Yes every 10th row of a certain column. Typically 5-7 cells in the original table. It varies.
    Last edited by johnsjg; 01-31-2011 at 05:56 PM. Reason: clarify

  4. #4
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Copy column and paste info in every nth cell

    I'm sure there is a better way to do this and maybe someone will chime in and show us so we can learn, but for now.......
    ......here is what I came up with.


    It adds 10 rows and works for 7 rows pasted data, you can add to the code if more rows are needed.

    Run macro "AddTenRows"
    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