Suppose Cell B1 contains "17 Jul 1832" in text format. (It would have to
be text to get around the 1900 date problem.)
I can make a macro to change that format, but to another cell. I.e., in
Cell K1, I could say: =myformat(B1) and it will be "1832 Jul 17"
without quotes.
By going to another cell, say Cell L1, and doing a VLOOKUP, I can change
that to "1832-07-17" without quotes, which is my preferred format. I
prefer the format to be yyyy-mm-dd.
Now my question. Rather than do this over several other cells, could a
macro be written so that I can click on cell B1, enter the macro, and it
will convert from
17 Jul 1832 to 1832-07-17 all in the same cell? (Probably not, but if it
can be done, it would same some time!)