+ Reply to Thread
Results 1 to 3 of 3

Need macro help for date delete

  1. #1
    Registered User
    Join Date
    12-06-2019
    Location
    Florida
    MS-Off Ver
    2016
    Posts
    9

    Need macro help for date delete

    I am fairly new to marcos so i am still learning, i need help with one that can delete dates excluding the day that is a week away + 1
    (example: Excel has dates from today 2020-02-13 through 2020-05-12. I need to delete all days that are not a week +1 away, so if i run this macro on 2020-02-12 it will delete everything except 2020-02-19 and 2020-02-20)
    is there a way to do this or an easier way that i maybe able to figure out, i am not sure how hard a macro like this would be.

    I attached the excel sheet with data that has the dates and what it looks like
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-28-2015
    Location
    Pruszków, Poland
    MS-Off Ver
    365 Business
    Posts
    58

    Re: Need macro help for date delete

    Hi, try this code:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-06-2019
    Location
    Florida
    MS-Off Ver
    2016
    Posts
    9

    Re: Need macro help for date delete

    This worked perfectly, you are a lifesaver

    Thank you

+ 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. Macro to find Date Cells > Current Date and delete everything to left of that cell
    By LewisLonsdale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2015, 06:36 AM
  2. RE: VBA Macro Needs Tweaking to Delete Rows Where Date As String is Less Than Today's Date
    By justinbelkin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-05-2013, 04:54 PM
  3. Popup box asking the effective date, so macro can delete any dates < entered date.
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2013, 07:40 AM
  4. Macro to delete rows with date less than 01/01/12
    By jimstrongy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-17-2012, 11:51 AM
  5. Macro to delete date in cell
    By tracykay1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2011, 11:40 AM
  6. Macro to delete dates > xx date
    By koltregaskes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-12-2011, 10:35 AM
  7. create macro to delete row with a date previous to current date
    By laserk7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2008, 12:36 PM

Tags for this Thread

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