View Single Post
 
Old 12-02-2019, 10:26 AM
NoSparks NoSparks is offline Windows 7 64bit Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

Try changing the macro to this
Code:
Sub UpdateIntakeDate()
    Dim rng As Range, cel As Range, lr As Long
With Sheets("Sheet1")
    lr = .Cells(.Rows.Count, "G").End(xlUp).Row
    If lr < 5 Then Exit Sub
    Set rng = .Range("G5:G" & lr)
    For Each cel In rng
        If cel <> "" Then
            If Date >= DateAdd("yyyy", 1, cel) Then
                cel = DateAdd("yyyy", 1, cel)
            End If
        End If
    Next cel
End With
End Sub

Last edited by NoSparks; 12-02-2019 at 10:45 AM. Reason: changed lr to < 5
Reply With Quote