+ Reply to Thread
Results 1 to 13 of 13

Date + 28 days delete

Hybrid View

  1. #1
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Date + 28 days delete

    Option Explicit
    
    Sub Remove28DaysAgo()
    Dim lastrow As Long, icell As Long
    
    lastrow = Range("G" & Rows.Count).End(xlUp).Row
    
    For icell = lastrow To 1 Step -1
        If Range("J" & icell).Value = "reschedule out" Then
            If Range("G" & icell).Value < Date - 28 Then
                Range("G" & icell).EntireRow.Delete Shift:=xlUp
            End If
        End If
    Next icell
    
    End Sub

  2. #2
    Registered User
    Join Date
    01-03-2009
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Date + 28 days delete

    I cannot get either of these solutions to work!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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