Here is the code:
VB Code:
  1. 'A function which accepts date of birth from and returns age in exact years, months and days
  2. Public Function ExactAge(BirthDate As Variant) As String
  3.     Dim yer As Integer, mon As Integer, d As Integer
  4.     Dim dt As Date
  5.     Dim sAns As String
  6.  
  7.     If Not IsDate(BirthDate) Then Exit Function
  8.     dt = CDate(BirthDate)
  9.     If dt > Now Then Exit Function
  10.  
  11.     yer = Year(dt)
  12.     mon = Month(dt)
  13.     d = Day(dt)
  14.     yer = Year(Date) - yer
  15.     mon = Month(Date) - mon
  16.     d = Day(Date) - d
  17.  
  18.     If Sgn(d) = -1 Then
  19.         d = 30 - Abs(d)
  20.         mon = mon - 1
  21.     End If
  22.  
  23.     If Sgn(mon) = -1 Then
  24.         mon = 12 - Abs(mon)
  25.         yer = yer - 1
  26.     End If
  27.  
  28.     sAns = yer & " year(s) " & mon & " month(s) " & d & " day(s) old."
  29.     ExactAge = sAns
  30. End Function