+ Reply to Thread
Results 1 to 9 of 9

Copy last row with data from one sheet to another sheet

  1. #1
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Belgium
    MS-Off Ver
    Excel 2019
    Posts
    180

    Copy last row with data from one sheet to another sheet

    Hi,

    I know how to copy a row from one sheet to another sheet

    But I don't know how to copy the last row with data from one sheet
    to another sheet and to add it behind the last row with data . Or eventually to copy the active row from sheet 1 to another sheet and to add it behind the last row with data

    Thank you for your help,

    Daniel

  2. #2
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    935

    Re: Copy last row with data from one sheet to another sheet

    Copy this macro in a vbe module and give it a try. Adjust sheet names and be sure that destination sheet has row 1 compiled (titles or whatever):
    Please Login or Register  to view this content.
    Last edited by rollis13; 10-05-2021 at 06:13 PM.

  3. #3
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Belgium
    MS-Off Ver
    Excel 2019
    Posts
    180

    Re: Copy last row with data from one sheet to another sheet

    Hi Rollis,

    Thank you for your help.

    I checked with a Msg Box: the last row is correct
    but I can't copy it because I am receiving the error message :" suscript out of range"

  4. #4
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Belgium
    MS-Off Ver
    Excel 2019
    Posts
    180

    Re: Copy last row with data from one sheet to another sheet

    I found it like this

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    935

    Re: Copy last row with data from one sheet to another sheet

    As said, did you adjust sheet names and/or check to have data in row 1 of destination sheet ?
    Last edited by rollis13; 10-06-2021 at 02:40 AM.

  6. #6
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Belgium
    MS-Off Ver
    Excel 2019
    Posts
    180

    Re: Copy last row with data from one sheet to another sheet

    Yes I have data in row 1 but not in A1

  7. #7
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    935

    Re: Copy last row with data from one sheet to another sheet

    The test is on column A so you need to adjust the ranges in the macro.

  8. #8
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Belgium
    MS-Off Ver
    Excel 2019
    Posts
    180

    Re: Copy last row with data from one sheet to another sheet

    Thank you Rollis

  9. #9
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    935

    Re: Copy last row with data from one sheet to another sheet

    Glad having been of some help .

+ 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. Replies: 1
    Last Post: 02-09-2017, 05:36 AM
  2. Replies: 1
    Last Post: 02-09-2017, 05:30 AM
  3. Replies: 2
    Last Post: 01-23-2016, 01:16 PM
  4. [SOLVED] Copy and paste data from sheet 2 to sheet 1 based on specific criteria on sheet 1
    By VBADUD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:18 AM
  5. Copy Sheet / Create & Name New Sheet / Insert Before a Sheet / Paste Data
    By thinkspac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2012, 02:27 PM
  6. [SOLVED] Macro to Copy Data from one Sheet A to Sheet B based on value in cell on sheet A
    By scass in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-11-2012, 07:21 PM
  7. Copy data from one sheet (Fixed Cells and sheet) to another sheet
    By RCatman23 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-21-2009, 12:56 PM

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