Format alphanumeric field in Excel
If it is not working, please post back exactly what you mean by
"scroll back up through ..."
The problem is the OP is using Alan's code and that code has an error in one
of its lines of code that makes the code always execute (I just posted a
correction for Alan to consider); on top of which, Alan's code makes use of
the SelectionChange event... these two things taken together means Alan's
originally posted code will always insert dashes into the text every time
the user makes a cell in the range active, whether anything in the cell is
changed or not.
--
Rick (MVP - Excel)
"Ron Rosenfeld" wrote in message
...
On Fri, 11 Sep 2009 06:54:27 -0700 (PDT), streksh
wrote:
Thanks to everyone for all of the help!! All of the replies were
extremely helpful. I did find a minor bug...if i scroll back up
through the cells in column D, it keeps adding the "-" over and over
and eventually errors out. Is there a way to reset the values or
inspect for an existing dash so that it doesn't do that? I'm not sure
how many users would actually do that, but I don't like to leave a
known issue....
My code *should* do that. Did you try it?
If it is not working, please post back exactly what you mean by "scroll
back up
through ..."
--ron
|