+ Reply to Thread
Results 1 to 3 of 3

Code to copy data does not copy last row in source data

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Code to copy data does not copy last row in source data

    I have the following code which copies the data from the source data


    I need to amend the code so that I copies all data from A1 to Col j up to the last row containing data in Col A. Currently if there is Data in Col A in the last row but no data in the same row in Col J, then the data is copies up the one row above it

    I have attached source sample data and highlighted the row not being copied

    Kindly amend my code so that all rows will be copied up to the last row containing Data in Col A


    I need this section of the code amended

    Please Login or Register  to view this content.



    Full Code

    Please Login or Register  to view this content.
    Your assistance is most appreciated
    Attached Files Attached Files
    Last edited by Howardc1001; 10-29-2018 at 04:15 AM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Code to copy data does not copy last row in source data

    Please try

    Please Login or Register  to view this content.
    J4 is blank so End(xlUp) select J3

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Re: Code to copy data does not copy last row in source data

    Thanks for the help and your explanation, Code works perfectly

+ 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. How can Copy the same format as the from source data to tow sheets
    By salmasaied in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-04-2017, 08:03 PM
  2. VBA code to make of copy of workbook2 and then copy data in that from Workbook1
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2015, 06:34 AM
  3. [SOLVED] Copy/paste when source data changes
    By Wheelie686 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-15-2013, 03:20 AM
  4. VBA Code to copy the format from source data to extracted report
    By rav4u_tom in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-08-2010, 03:53 AM
  5. copy specific data from outside data source
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2009, 11:07 AM
  6. Re: copy specific data from outside data source
    By excelaspire0219 in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 01-27-2009, 11:05 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