Hi,
I'm using CDate to convert particular date formatted as string to excel Date type. I wrote a small UDF for this conversion, however when I run the function as a in-cell function, it returns a number and the calling cells default format is set to Number type. When I manually convert it to Date type, excel will display the correct date entry.
So, I need to know whether there is a way to set default format of the calling cell to Date type through my Date conversion macro. Otherwise, user has to manually change format of each of cell.
e.g
Function Test()
Test = CDate("2010/12/23")
End Function
Thank You