+ Reply to Thread
Results 1 to 15 of 15

Copy and paste entire row from one sheet to another between two rows

  1. #1
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Norge
    MS-Off Ver
    2019
    Posts
    570

    Copy and paste entire row from one sheet to another between two rows

    Hello

    I need some help i want to copy entire rows using checkbox in sheet KFHUP here in this example, and paste it in to sheet Hurtig Calc start with row 19, and past next below, the problem is when it comes to row 33 it need insert a row for next
    Attached Files Attached Files

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Copy and paste entire row from one sheet to another between two rows

    Possibly this will work for you...
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Norge
    MS-Off Ver
    2019
    Posts
    570

    Re: Copy and paste entire row from one sheet to another between two rows

    Hello

    Thank you this is what i was looking for, but there is a problem, it seems it copy same row several times

    i did one klikk on all boxes when i downloaded your file, here is the result
    Attached Images Attached Images

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Copy and paste entire row from one sheet to another between two rows

    The code as written, does not delete any data. It simply appends to the top of the list. If you run it twice it will duplicate the transferred data.

  5. #5
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Norge
    MS-Off Ver
    2019
    Posts
    570

    Re: Copy and paste entire row from one sheet to another between two rows

    Hello

    Ok, i am thinking to copy one row for each checkbox

  6. #6
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Copy and paste entire row from one sheet to another between two rows

    In this worksheet, there are 4 checkboxes. I've run the code once and you can see the 4 rows copied. Uncheck some of the checkboxes and run it again...
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Norge
    MS-Off Ver
    2019
    Posts
    570

    Re: Copy and paste entire row from one sheet to another between two rows

    Hello

    Now i understand, my misstake, in my head i assign the code to each checkbox, but ok i make a buttom and assign the code to that

    Thank you

  8. #8
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Copy and paste entire row from one sheet to another between two rows

    I modified the code if you're putting a button on the results sheet...
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Norge
    MS-Off Ver
    2019
    Posts
    570

    Re: Copy and paste entire row from one sheet to another between two rows

    Hello

    i get an error here xlCheckBox Then s Delete

  10. #10
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Copy and paste entire row from one sheet to another between two rows

    What's the error?

  11. #11
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Norge
    MS-Off Ver
    2019
    Posts
    570

    Re: Copy and paste entire row from one sheet to another between two rows

    Hello

    Here is the picture
    Attached Images Attached Images

  12. #12
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Copy and paste entire row from one sheet to another between two rows

    My error. Should be a dot instead of a space between the s and delete.
    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Norge
    MS-Off Ver
    2019
    Posts
    570

    Re: Copy and paste entire row from one sheet to another between two rows

    Hello

    Thank you for the kindness, I will now try to add more sheets, i assume that work to

    The modify delete the buttom ?
    Last edited by dodde; 06-10-2020 at 01:08 PM.

  14. #14
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Copy and paste entire row from one sheet to another between two rows

    The code should work on similar worksheets. If not, let us know!

  15. #15
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Norge
    MS-Off Ver
    2019
    Posts
    570

    Re: Copy and paste entire row from one sheet to another between two rows

    Hello

    this become perfect for me, Thanks again

    I also added this for unchecked to the end

    Please Login or Register  to view this content.

+ 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. [SOLVED] Copy entire row and paste it to another sheet
    By Lukael in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-21-2017, 03:51 PM
  2. Copy paste entire row in another sheet having xyz name
    By watermasa in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-24-2015, 03:22 AM
  3. [SOLVED] VBA code to copy and paste an entire row from one sheet to another
    By emach in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-24-2013, 12:12 PM
  4. to copy paste the entire row to the new sheet
    By karanpreet in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-15-2013, 10:51 AM
  5. Help with Copy entire row and paste to new sheet
    By 20lgt06 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2013, 09:24 AM
  6. Copy paste entire row different sheet column C
    By nahge123 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-15-2012, 02:16 PM
  7. 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

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