Selecting ten cells and pasting them to new sheet horizontally in i loop

  • I am trying to get a loop function to select ten cells in column C and then paste those selected columns to sheet 4 and paste them horizontally, the problem I am encountering is instead of copying the ten cells in one column it selects one cell in the column and copy's it ten times in sheet 4. I realize this is because of how my code is set, my question is how can I make vba select the the ten cells then paste it on the other sheet and then have vba select the next ten cells in the column? This is what I have:




    Any tips and or suggestions would be most appreciated, if it is not clear just let me know and I can try to rephrase my question. Thanks

  • Re: Selecting ten cells and pasting them to new sheet horizontally in i loop


    If you are copying all the cells in the column (i = 2 to last row), then why do it in increments of 10. Why not just copy all the data in column C and paste it into Sheet 4. Am I misunderstanding your needs? Please expand on your explanation and explain the rationale of what you are trying to accomplish. The actual Business scenario.


    Edit: Just re-read this. Are trying to transpose the 10 items when pasting them into the new sheet? And each 10 items are on a new line?

  • Re: Selecting ten cells and pasting them to new sheet horizontally in i loop


    Try this:


  • Re: Selecting ten cells and pasting them to new sheet horizontally in i loop


    Thanks that worked, I needed a piece of code that spat out lines of ten and went downwards because the way another program reads excel files for printing labels for shipping. This code will generate a list of numbers in increments of ten, ten numbers = ten labels = one lot. Thus automating operations, for one of my coworkers. Making everything more efficient was the business scenario.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!