+ Reply to Thread
Results 1 to 6 of 6

Copy cells H - L and Paste to A - E on next line

  1. #1
    Registered User
    Join Date
    05-10-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    7

    Copy cells H - L and Paste to A - E on next line

    I have a worksheet which has columns A-L

    I am using this macro to insert a blank row between each existing row:

    Please Login or Register  to view this content.
    What I need is a macro that will select the cells H-L for each row, cut them and paste them in the A-E cells of the following line (which is blank).

    I need the macro to do this for each line until the end of the file.

    Is this possible?

    Any help would be greatly appreciated!

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    re: Copy cells H - L and Paste to A - E on next line

    Try

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-10-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    7

    re: Copy cells H - L and Paste to A - E on next line

    Thank you for your help! This is Close! But it seems to paste it on the same row, instead of the following row.

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    re: Copy cells H - L and Paste to A - E on next line

    O. Just add +1 before rni

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-10-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Copy cells H - L and Paste to A - E on next line

    Ok, that almost works, too. But what's happening now is that the cells in the blank rows are copying down also, so the first few columns of the existing rows are ending up blank..... I guess I just need it to be adjusted to work on every other row. (only odd numbered rows)

  6. #6
    Registered User
    Join Date
    05-10-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Copy cells H - L and Paste to A - E on next line

    I think I figured it out!

    Please Login or Register  to view this content.
    THANKS A MILLION!
    Last edited by abcisme; 05-10-2012 at 01:51 PM.

+ 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