+ Reply to Thread
Results 1 to 9 of 9

Copy one column and paste into every nth column

  1. #1
    Registered User
    Join Date
    03-27-2020
    Location
    United States
    MS-Off Ver
    Microsoft Office 360 Pro Plus
    Posts
    4

    Copy one column and paste into every nth column

    Hi all,

    I have an 800-row column with text in each row. I am looking to copy and paste/transpose the text onto Row 1, with each value 10 cells apart. I've been scouring the Internet for a code that will get me there, and the closest I've come was this, from alansidman a decade ago, but that pastes the whole column every nth row, rather than taking one cell and moving onto the next. Apologies -- I am new to this and trying to teach myself, but just can't get there.

    Sub copy50()
    Dim lr As Long
    lr = Range("A" & Rows.Count).End(xlUp).Row
    Dim i As Long

    Application.ScreenUpdating = False
    For i = 6 To 250
    Range("A1" & ":A" & lr).Copy Cells(1, i)
    i = i + 4
    Next i

    Application.CutCopyMode = False
    Application.ScreenUpdating = True
    MsgBox ("complete")

    End Sub

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Copy one column and paste into every nth column

    See yellow banner above...This will help...
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    03-27-2020
    Location
    United States
    MS-Off Ver
    Microsoft Office 360 Pro Plus
    Posts
    4

    Re: Copy one column and paste into every nth column

    Roger that. Sample, representative sheet attached. You'll see the first few items in Column A are also in Row 1 ten cells apart.
    Attached Files Attached Files

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Copy one column and paste into every nth column

    Sample file does not depict what your expected result must be...Please edit above and attach another file...
    Also please make sure that this depicts your actual setup so no time is wasted on unnecessary coding...

  5. #5
    Registered User
    Join Date
    03-27-2020
    Location
    United States
    MS-Off Ver
    Microsoft Office 360 Pro Plus
    Posts
    4

    Re: Copy one column and paste into every nth column

    Sorry, I'm not sure what you mean... this is the set up, I just removed hundreds of rows per the instructions in the yellow banner. I am looking to have A column copied, so that A1 is pasted to E1, A2 is pasted to O1 (ten cells to the right of E1), A3 is pasted to Y1 (ten cells to the right of O1), and so on through the list. I can upload a .xlsm if that's the difference you're looking for?
    Attached Files Attached Files

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Copy one column and paste into every nth column

    Now i get it...
    One way...
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-27-2020
    Location
    United States
    MS-Off Ver
    Microsoft Office 360 Pro Plus
    Posts
    4

    Re: Copy one column and paste into every nth column

    You are a miracle worker. Thanks for your patience and your help.

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Copy one column and paste into every nth column

    Pleasure...Tx for rep...
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Copy one column and paste into every nth column

    Administrative Note:

    Hi and welcome
    although we value privacy as much as anyone else, it could be important that members have a rough idea of your location. You might in the future post questions which are bound to your regional settings.
    So, please update your profile to something more precise then "Internet" ( country will suffice, no need to be more precise).
    Thank you for helping us to help you

+ 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. VBA Excel: Copy/Paste a column range to another sheet IF column headers match
    By hwatson86 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 06-07-2016, 08:05 AM
  2. Replies: 0
    Last Post: 10-29-2015, 04:15 PM
  3. Replies: 1
    Last Post: 05-30-2015, 04:38 PM
  4. Replies: 5
    Last Post: 08-01-2014, 04:30 PM
  5. Replies: 3
    Last Post: 05-22-2013, 01:08 AM
  6. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM
  7. Replies: 4
    Last Post: 08-31-2010, 10:48 PM

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