Hello,
I have a UDF as
which returns the last day of a month given a date. I need to use it in a sub:PHP Code:
Function LastDay(DateUsed As Date) As String
LastDay = Format(CDate(WorksheetFunction.EoMonth(DateUsed, 0)), "dd-mm-yy")
End Function
Range("F13") = LastDay(Range("D6"))
but instead of a date, I need cell D6 to show the function =LastDay(D6), can someone please help?
Bookmarks