![]() |
Macro to identify year within a date
I need help trying to identify the year within a date written either in
mm/dd/yyyy or m/d/yyyy format. If the date is a particular year then my code will do one thing but if it is another date it will do something else. Please help! Thanks! |
Macro to identify year within a date
If Year(MyDate) = 2005 Then
Do Stuff Else Do Other Stuff End If "smitty24" wrote in message ... I need help trying to identify the year within a date written either in mm/dd/yyyy or m/d/yyyy format. If the date is a particular year then my code will do one thing but if it is another date it will do something else. Please help! Thanks! |
All times are GMT +1. The time now is 09:24 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com