+ Reply to Thread
Results 1 to 7 of 7

Copy data from one sheet across to empty row in next worksheet

  1. #1
    Registered User
    Join Date
    04-28-2009
    Location
    Bournemouth, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Question Copy data from one sheet across to empty row in next worksheet

    Hi,

    I need to copy data from one worksheet across to another worksheet in the same workbook, which is easy enough (I have used a macro to do this) but the problem I have is that everytime I run the macro, it copies the data across to the same row, therefore overwriting anything already existing in that row.

    Could someone clever please let me know how I can set it to copy to the next empty row each time?

    I can submit an example if necessary.

    Thank you very much,

    Jo

  2. #2
    Registered User
    Join Date
    03-06-2012
    Location
    Mumbai
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Copy data from one sheet across to empty row in next worksheet

    Hi Jo,

    Try using this macro at the start:

    Private Sub Workbook_SheetActivate(ByVal Sh As Object)


    Regards,

    Vivek

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

    Re: Copy data from one sheet across to empty row in next worksheet

    Can you post your code here so we can help you edit it?
    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]

  4. #4
    Registered User
    Join Date
    04-28-2009
    Location
    Bournemouth, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Copy data from one sheet across to empty row in next worksheet

    Hi,

    Thank you very much for your replies. I'm probably being a bit thick, but I tried pasting the code into a new macro, but it didn't work.

    I've attached a basic copy of the file so you can get the gist of what I'm trying to do.

    Many thanks,

    Jo
    Attached Files Attached Files

  5. #5
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: Copy data from one sheet across to empty row in next worksheet

    Try this code. It will work 100%

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by thameem127; 01-29-2013 at 01:33 PM. Reason: Attachment

  6. #6
    Registered User
    Join Date
    04-28-2009
    Location
    Bournemouth, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Copy data from one sheet across to empty row in next worksheet

    Wow! Thanks thameem127, that's brilliant.

    Thank you so much again to all of you.

    Jo

  7. #7
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: Copy data from one sheet across to empty row in next worksheet

    your welcome. Please press star available in left side of my post and mark this thread as solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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