ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Change Dates (https://www.excelbanter.com/excel-programming/377561-change-dates.html)

Aaron

Change Dates
 
Hello,

Needing code that looks at a Column B on Tab "123" and if there are any
dates < todays date then change to todays date.

Thanks,
Aaron

Don Guillett

Change Dates
 
Sub fixdate()
For Each c In Range("b2:b22")
If IsDate(c) And c < Date Then c.Value = Date
Next
End Sub

--
Don Guillett
SalesAid Software

"Aaron" wrote in message
...
Hello,

Needing code that looks at a Column B on Tab "123" and if there are any
dates < todays date then change to todays date.

Thanks,
Aaron





All times are GMT +1. The time now is 10:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com