Ron,
Thank you for your quick response.
Your suggestion works for the simple case I presented, but if you change it up a little where you are only replacing the last 4 digits, then there is no elegant (and by elegant I mean quickly-implemented) method to replace only the last 4 digits without
the text-to-date conversion occurring.
I am the person in my organization that people turn to for help in converting, calculating and presenting data. I've seen it all and nearly every batch of data is different and requires some sort of workaround. There is no golden method that works from
one data set to another. It is generally not feasible to write VBA code to does something once that will likely never get used again (although I tend to try and write it generic enough to be mostly reusable).
The three most painful (time-consuming) "features" of Excel that I have never seen addressed are:
- The text to date conversion described in this thread,
- when converting Access data into formatted Excel data, fields that were blank in Access appear blank in Excel, but they are not (going the no-formatted route can cause Excel's conversion to Date, Exponent, etc. routines to occur); and
- Lastly the " ' " prefix itself. There are no simple methods to get it there without hand entering the data. And once you get it there if you manipulate the cell in any way, you can lose it. Functions that work with the text will either strip it off or
even worse, they may include it as the first character so everything shows up as '2-1325, '1-1225, etc.
In my world, there is very little hand entering of data. Everything comes from somewhere, so copy/paste, import/export, etc are my friends. I love Excel there are times when that love is painful. And, yes, I do know that any comments posted here will
not likely reach anyone at Microsoft, but these are things that I felt were worth reiterating because finding workarounds to them is one of the most time-consuming things I do.
Again, thanks for your time.
K. Brower