+ Reply to Thread
Results 1 to 5 of 5

Copy and Paste from one sheet to next empty table row in another sheet

  1. #1
    Registered User
    Join Date
    05-27-2015
    Location
    Minnesota
    MS-Off Ver
    2010
    Posts
    19

    Copy and Paste from one sheet to next empty table row in another sheet

    I am trying to merge two sheets together, where I need to copy all the content from Sheet1, minus the header row, into the next empty row of Sheet2. Sheet2 data is in a table format so when I paste from Sheet1, it isn't adding to the table. Is there a way to fix this?

    Also, if the data in Sheet1 can vary, is there a more effective way to copy the data?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Copy and Paste from one sheet to next empty table row in another sheet

    Hello
    I've created a test file with a 3 column table (Table1) and used the following code to copy from Sheet1 with no problems.

    Please Login or Register  to view this content.
    I've referenced the Table1 directly and used its rows count to find the last row.

    Also, if the data in Sheet1 can vary...
    I think you would need to elaborate on what you mean by 'vary'.

    DBY

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Copy and Paste from one sheet to next empty table row in another sheet

    Hello shre0047,

    ...Also, if the data in Sheet1 can vary, is there a more effective way to copy the data?
    We could employ an InputBox to handle this, however there might be some complications, depending on which Column to use to find the last empty row in your Table.

    I guess we have to start somewhere, so please try the Code below in a Standard Module.

    Please Login or Register  to view this content.
    Feel free to change the attached sample Workbook to your preferences.

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Registered User
    Join Date
    05-27-2015
    Location
    Minnesota
    MS-Off Ver
    2010
    Posts
    19

    Re: Copy and Paste from one sheet to next empty table row in another sheet

    Quote Originally Posted by Winon View Post
    Hello shre0047,



    We could employ an InputBox to handle this, however there might be some complications, depending on which Column to use to find the last empty row in your Table.

    I guess we have to start somewhere, so please try the Code below in a Standard Module.

    Please Login or Register  to view this content.
    Feel free to change the attached sample Workbook to your preferences.

    Regards.
    What i mean regarding the data varying is the number of rows. Sometimes, it could be 100, other times it could be 2000. The columns would stay the exact same though.

  5. #5
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Copy and Paste from one sheet to next empty table row in another sheet

    Hi shre0047,

    What i mean regarding the data varying is the number of rows. Sometimes, it could be 100, other times it could be 2000.
    That is fine. The InputBox requires you to enter the Range to be copied, and you may select one Cell or ten thousand Rows, doesn't matter, it will still work!

    Regards.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Copy paste from one sheet to next empty row
    By wlbamc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-18-2016, 06:01 AM
  2. Copy value in sheet 2 and paste in next empty cell in sheet 1
    By Locutos in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2016, 03:21 PM
  3. [SOLVED] Copy And Paste on Another Sheet ( next time paste data from empty row )
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-17-2014, 02:29 AM
  4. [SOLVED] Copy and Paste Row from Sheet(1) to First Empty Row in Sheet(2)
    By jgray in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-21-2013, 03:54 PM
  5. [SOLVED] Copy and paste row into next sheet, into next empty row??
    By Statesman in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-15-2012, 08:00 AM
  6. Copy Entire Row & Paste in First Empty Row On The Same Sheet
    By Emonk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2011, 11:41 AM
  7. Copy Data & Paste Another Sheet Empty Row
    By johncena in forum Excel General
    Replies: 7
    Last Post: 03-02-2010, 07:47 AM

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