+ Reply to Thread
Results 1 to 2 of 2

VBA - Deleting all rows in data set for all past dates

  1. #1
    Registered User
    Join Date
    05-11-2022
    Location
    Australia
    MS-Off Ver
    Excel 2019
    Posts
    4

    Lightbulb VBA - Deleting all rows in data set for all past dates

    Hi all,

    Need help with a macro
    Essentially we have a sheet of data, changes every day.
    Many columns but Column C contains the column of end dates.
    I want to filter the data, and then delete every row in the data where column c contains dates before today (the day we run the macro, so changing daily)
    Is this possible? I tried messing around with it but I couldnt get it to work.

    I'm in Australia so my system dates are dd/mm/yyyy if that matters...from googling online it seems Excel does dates as US format?
    Thankyou very much, let me know if you need more information or examples

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,785

    Re: VBA - Deleting all rows in data set for all past dates

    crossposted at: https://www.mrexcel.com/board/thread...dates.1206052/

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Deleting Last 8 rows after dates
    By biznez in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-17-2015, 05:35 PM
  2. Macros-deleting space in rows, selecting next number and past in first row
    By Mdesh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2014, 05:37 AM
  3. Autofilter with dates instead of deleting rows
    By johnny_p in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-21-2013, 11:20 AM
  4. [SOLVED] Clearing Data (not deleting rows) after date is in the past
    By jlo33 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-13-2013, 03:35 AM
  5. Deleting Rows Which Have Unwanted Dates (More Than a Week later)
    By clattenburg cake in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2013, 08:16 AM
  6. Need a Macro to identify & then copy all rows containing dates within the past month.
    By Cliffster in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-08-2013, 06:00 AM
  7. [SOLVED] Count data based on past dates
    By JimDandy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-28-2006, 10:59 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