+ Reply to Thread
Results 1 to 6 of 6

change code form implementation in the same file to external file to copy lastrow

  1. #1
    Forum Contributor
    Join Date
    05-25-2022
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    225

    change code form implementation in the same file to external file to copy lastrow

    Hi
    I want to copy the data after the last row containing a zero for column G of each name of column C , and ignore all the data that precedes the last row with a zero for the same name if the last row contains a zero for column G for a specific name . if there are no data under it the last row with a zero , then it should be ignored and not copied But if there is absolutely no last row that contains a value of zero for a specific name, then all the data for the name is copied.
    I put what I want the result in accounts sheet for the file 2023 and import from filter sheet for BOX1 file . should replace data every time run the macro .
    here is Marc L's code works in the same file in CLEAN sheet( but delete clean sheet to implement in other file ) .
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: change code form implementation in the same file to external file to copy lastrow


    Hi,

    attach the link of your original thread in order I can check something …

  3. #3
    Forum Contributor
    Join Date
    05-25-2022
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    225

    Re: change code form implementation in the same file to external file to copy lastrow

    thanks Marc
    here is the link
    https://www.excelforum.com/excel-pro...ml#post5782098

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Try this ...


    According to your new rules my VBA demonstration revisited for starters :
    Please Login or Register  to view this content.
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !

  5. #5
    Forum Contributor
    Join Date
    05-25-2022
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    225

    Re: change code form implementation in the same file to external file to copy lastrow

    thanks very much for your assistance

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: change code form implementation in the same file to external file to copy lastrow


    Thanks for the rep' !

    My demonstration works whatever if the result workbook is already opened or not if located in the same folder than the source workbook …

+ 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 2 different tables form one file to different sheets in a new file
    By MULTIVERSE in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-24-2022, 10:54 AM
  2. Macro to copy server file into local folder, and change data sources to this new file
    By rickywangca in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2019, 11:18 AM
  3. External Data from Microsoft Query - Excel File - Causes external file to open.
    By lee1000d in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2015, 02:25 PM
  4. Replies: 3
    Last Post: 05-21-2013, 08:22 AM
  5. [SOLVED] External data from webpage (txt file) to form
    By Marco-Kun in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-08-2012, 08:42 AM
  6. External File(s) referenced and file links change based on row cell.
    By Jimmydageek in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-23-2009, 02:59 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