+ Reply to Thread
Results 1 to 6 of 6

Delete rows on sheet based on last record on column

  1. #1
    Registered User
    Join Date
    08-25-2014
    Location
    GREECE
    MS-Off Ver
    2007
    Posts
    10

    Delete rows on sheet based on last record on column

    If records on column "D" (date) older four days of the last record on column "D" then delete old rows.. my DB is range A2:E40..
    I need help on how to do this.. thanks

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Delete rows on sheet based on last record on column

    hi ACALEX, welcome to Excelforum, please check attachment, press "Run" button or run code "test"(ALT+F8, select "test", press Run)

    PS. For your future posts it would be helpful to post sample file with mock up data to support your request
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-25-2014
    Location
    GREECE
    MS-Off Ver
    2007
    Posts
    10

    Re: Delete rows on sheet based on last record on column

    thanks for the help.. your list is exactly what have.. but i have daily update on this list.. and i need way how to delete all records older four days of the last record on column "D". automatically or manual I do not care.. if anyone has a solution, it would make life easier

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Delete rows on sheet based on last record on column

    update the table and run the code. What is wrong?

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Delete rows on sheet based on last record on column

    I see what you mean, please check attachment
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-25-2014
    Location
    GREECE
    MS-Off Ver
    2007
    Posts
    10

    Re: Delete rows on sheet based on last record on column

    thank you very much for your help .. something was wrong with the other code.. works perfectly .. thanks :D

+ 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. Delete rows after last record in a column.
    By Fuzzball1974 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-12-2014, 11:14 PM
  2. Replies: 8
    Last Post: 08-08-2013, 08:45 AM
  3. [SOLVED] Delete rows based on value of column
    By ROHAN999 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-02-2013, 05:30 AM
  4. Macro to delete certain columns and delete rows based on time in another column
    By beepbeep27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2012, 11:47 AM
  5. Delete Rows In Sheet 1 Based Off Of Criteria On Sheet 2 Column A
    By Pfafkl13 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-23-2011, 06:35 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