Hi June
With my limited knowledge of VBA is the modified Module enclosed correct?
Function ReturnData(lngMaritalStatus As Variant, dblBasicSalary As Variant, dblLower As Variant, dblExemptionCredit As Variant, dblAmountfromColumnA As Variant) As Double
If Len("" & lngMaritalStatus) = 0 Or...