Thanks. I changed it to the following but then the code excution stops at 'Null' invalid use of Null. Run time error 94.
Public Function ReturnReqDate(strDivision As String, strDevCode As String, dteSiteStart1 As Variant, dteTradersComp As Variant, dteBuilderComp As Variant) As Date
On Error...