ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Work out years from entered Date (https://www.excelbanter.com/excel-programming/392838-work-out-years-entered-date.html)

Sue

Work out years from entered Date
 
Hi All

I have a userform with many text boxes that I input members names addresses
etc then when clicking the commandButton it all goes on to the "Members"
Sheet. I cannot work this one out -- say I have two TextBoxes == TB1 which I
enter the Date of Birth 27/11/1941 can TB2 automatically work out the number
of years = 65 not bothered about months and days. If so, then on clicking the
commandbutton that will also enter on the "Members" sheet.
--
Many Thanks

Sue

ssGuru

Work out years from entered Date
 
On Jul 6, 12:22 pm, Sue wrote:
Hi All

I have a userform with many text boxes that I input members names addresses
etc then when clicking the commandButton it all goes on to the "Members"
Sheet. I cannot work this one out -- say I have two TextBoxes == TB1 which I
enter the Date of Birth 27/11/1941 can TB2 automatically work out the number
of years = 65 not bothered about months and days. If so, then on clicking the
commandbutton that will also enter on the "Members" sheet.
--
Many Thanks

Sue


=YEAR(Today())-YEAR(TB1)
Dennis



All times are GMT +1. The time now is 01:59 PM.

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