Senthil Murugan
New Member
- Joined
- Sep 25, 2024
- Messages
- 47
- Office Version
- 365
- Platform
- Windows
VBA Code:
DATEDIF FUNCTION
Hi Good afternoon everybody
Can you help to write code for Datedif Function like
Testbox3. value = Datedif(Testbox1.value,Textbox2.value,"ym")
Testbox4. value = Datedif(Testbox1.value,Textbox2.value,"md")
Testbox5. value = Datedif(Testbox1.value,Textbox2.value,"y")
Textbox1.value = 05-08-1985
Textbox2.value = 10-12-2024 ( Today )
The Result should be
39 years, 4 years and 5 days
with regards
VBA Code:
Datedif Function
A.Senthil Murugan