i'm trying to do a date serial function as below
Public Function lastofLastMonth() As Date
DateSerial(2010, 2, 28)
End Function
i get a syntax error can someone tell me what i am missing please
thanks
i'm trying to do a date serial function as below
Public Function lastofLastMonth() As Date
DateSerial(2010, 2, 28)
End Function
i get a syntax error can someone tell me what i am missing please
thanks
Try:
Public Function lastofLastMonth() As Date
lastofLastMonth = DateSerial(2010, 2, 28)
End Function