![]() |
#13
|
|||
|
|||
![]()
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 |
Tags |
automatically, update, year |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
SavGDK | Excel | 2 | 06-24-2016 08:05 AM |
![]() |
ohi | Word VBA | 3 | 12-04-2014 12:11 PM |
Date/Time Formula for Entry level XL user | talon1driver | Excel | 2 | 09-18-2014 02:32 PM |
Mail merge with filter using data inputted by user | Tornado70 | Mail Merge | 6 | 04-09-2013 07:16 AM |
![]() |
Jamal NUMAN | Word | 2 | 01-06-2011 02:43 PM |