Excel VBA InputBox value is not a date -
i have user input box type in string, annoyingly string looks date 00/00/0000
, excel reformats such. when value can't date ex. 18/19/4561
(month can't 18 or 19) displays correctly. whenever can seen possible date switches things around.
i've tried setting value string rather nothing excel still changes when putting in page.
when try manually inputting in cell or equal values manually entered cell works fine.
but whenever inputbox messes it. when hard code string variable (x = "05/06/4564"
) switches things around.
how force excel leave string is?
prefix value single apostrophe , excel interpret string.
eg '18/19/4561
also, have tried setting cell format text
Comments
Post a Comment