The formula function of =DATEVALUE and VBA's DateValue() provide exclusive results. How can I format a date in VBA to obtain the same serialization as I would by using =DATEVALUE?
Example: 1/19/2016
, formatted "m/d/yyyy", will return 42388
through =DATEVALUE()
Format('date_string',"mm-dd-yyyy")
for example. – Scott Holtzman1/19/2016
would become42388
. – sirius_pain"General"
– Scott CranerRange("A1") = "1/1/2016"
thenRange("A1").NumberValue = "General"
– Scott Craner