+ Reply to Thread
Results 1 to 13 of 13

Copy and paste row into next sheet, into next empty row??

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    15

    Copy and paste row into next sheet, into next empty row??

    Hi All,

    I've got this far, but when the row is cut from the first sheet and pasted into the next it just over rights the last row pasted there instead of pasting the next row down, any help resolving this would be MUCH appreciated. Thanks. Adam.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy and paste row into next sheet, into next empty row??

    Since you have this code
    Please Login or Register  to view this content.
    Its actually leaving a blank row below the last row of data and then pasting it

    It works fine at my end. Maybe you can attach your file if you are still facing issues.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    08-15-2012
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Copy and paste row into next sheet, into next empty row??

    Hi Arlette,

    Thanks for the input. It just pastes the row for sheet1 into the same row in sheet2 rather than the next one down (so it compiles a list). I've attached my file. Thank you.
    Attached Files Attached Files

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy and paste row into next sheet, into next empty row??

    Since your data starts in column B, change this line from
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-15-2012
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Copy and paste row into next sheet, into next empty row??

    Thank you so much for your time helping me with this. I made the amendment but now the debugger runs in that line?...

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy and paste row into next sheet, into next empty row??

    What error do you get?

  7. #7
    Registered User
    Join Date
    08-15-2012
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Copy and paste row into next sheet, into next empty row??

    Run-time error 1004 "the information cannot be pasted because the copy area and the paste area are not the same size and shape..."

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy and paste row into next sheet, into next empty row??

    Change this code from
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    08-15-2012
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Copy and paste row into next sheet, into next empty row??

    Thank you... Now it's copying it and deleting from sheet1 as it did before but not pasting into sheet2?? I'm thinking of selling my laptop and buying a cat, although that probably won't do as its told either lol

  10. #10
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy and paste row into next sheet, into next empty row??

    Add this line to clearcontents -
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    08-15-2012
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Copy and paste row into next sheet, into next empty row??

    Thanks heaps, that fixed that; but still have the issue with it only pasting in row 3 and not compiling a list (ie row 3 then 4 then 5 etc)in sheet2. Is it doing that okay at your end? I've wondered for a while if my office is buggy as have had macros work fine at work then bug out on my lap top...

  12. #12
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Copy and paste row into next sheet, into next empty row??

    Hi -

    Try
    Please Login or Register  to view this content.
    Regards,
    Event

  13. #13
    Registered User
    Join Date
    08-15-2012
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Copy and paste row into next sheet, into next empty row??

    Thank you Event the macro now runs perfectly. And thank you Arlette for your time too, I was able to sort another buggy macro aswell by using your suggestions (I'm very new to vba, obviously) the cat will have to wait now ... Thanks again. Adam.

+ 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