Hi,
First of all a happy new year to all of you.
I want to calculate the age of a person in VBA. In normal Excel in use the Yearfrac function for this. However this seems not to work in VBA as VBA does not recognise this worksheetfunction.
Is there an other method of calculating the exact age when the date of birth and the date of today is given?. Dividing the difference of the two dates by 365 does not give the good result.
Thanks in advance for your replies,
Lucien
First of all a happy new year to all of you.
I want to calculate the age of a person in VBA. In normal Excel in use the Yearfrac function for this. However this seems not to work in VBA as VBA does not recognise this worksheetfunction.
Is there an other method of calculating the exact age when the date of birth and the date of today is given?. Dividing the difference of the two dates by 365 does not give the good result.
Thanks in advance for your replies,
Lucien