+ Reply to Thread
Results 1 to 12 of 12

Copy in a loop down column

  1. #1
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Copy in a loop down column

    I need the full code to perform the following portion of the code every 7 rows in column JI starting in cell J104 then in JI111 ect..

    Please Login or Register  to view this content.
    I tried to write a code to loop down the entire column JI but I am having trouble doing so. How can I modify the code to work?

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by rhudgins; 10-22-2010 at 09:37 AM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copy in a loop down column

    Hi rhudgins

    I'm a little unclear but see it this code does as required
    Please Login or Register  to view this content.
    John
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: Copy in a loop down column

    That works perfectly. Thank you for your help.

  4. #4
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: Copy in a loop down column

    What exactly does the .Resize(1,10) do in the code? I am some what confused and trying to learn

  5. #5
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: Copy in a loop down column

    Also, If I would like to execute this code on two different worksheets that are next two each other how can it be done?

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copy in a loop down column

    Hi rhudgins

    This line of code
    Please Login or Register  to view this content.
    says to move 10 columns to the left on the same row
    Please Login or Register  to view this content.
    and then resize that cell range by 1 row and 10 columns to the right
    Please Login or Register  to view this content.
    You cannot resize by negative values so I've moved to the left then came back to the right.

    Effectively what it says is move the cursor 10 columns to the left then select that cell and the nine cells to it's right. Clear as mud?

    John

  7. #7
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: Copy in a loop down column

    Clear as Poland Spring!!

    Can you help me out with my other question?

  8. #8
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copy in a loop down column

    Hi rhudgins

    Well again, it depends of your workbook structure.

    Are the two worksheets the only worksheets in the workbook? If so, it matters not what the worksheets are named.

    If not, are the two worksheets always distinctively named and always have those distinctive names? If so, what are the worksheet names?

    John

  9. #9
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: Copy in a loop down column

    There are many different worksheets in the workbook. The two worksheets that I need the code to work on are called "Raw Price Data Long" and "Raw Price Data Short"

  10. #10
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copy in a loop down column

    Hi rhudgins

    Try this
    Please Login or Register  to view this content.
    Let me know of issues.

    John

  11. #11
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: Copy in a loop down column

    Thanks it is flawless.

  12. #12
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copy in a loop down column

    Hi rhudgins

    You're welcome. If your issue is solved, please mark it as such. A click on the scales is always appreciated.


    John

+ 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