Hello
When you punch in a native function likeyou get a human-readable output, like 2/23/15. Yet a barebones UDF will spit out the excel representation of a date like 42058.![]()
=TODAY()
Here's a brief UDF for the sake of example. What am I missing of get a human-readable date as output that will still behave like an Excel date?
![]()
Function ForTheSakeOfExample(ByVal num As Integer) As Date If (num > 0) Then ForTheSakeOfExample = DateSerial(2015, 1, 1) Else ForTheSakeOfExample = Date End If End Function
Bookmarks