× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




I would like to apply this to a range of cells in one column (and for
the purposes of this excercise, I am just testing the column and not a
range of rows).  It works great, except in the case when I select more
than one of the cells and press the Delete key to clear the contents. In this case, I get an error on the line "Target.Value =
UCase(Target.Value)".
If you want it to work for a range of cells or for any cell, then you would adjust the row and column tests accordingly. For it to work on all cells, you would remove the checking completely.

For it to handle cases where you are deleting contents, then you'd have to surround the UCase statement with the IsEmpty and IsNull checks.

I guess I should say, it "worked" great.  I can't get it to work
anymore.  Did it get "deactivated" when the error occurred?
Yes, the key is the EnableEvents method. If it blows up, the enable events status is still off, so the procedure will not fire again until it's either set back on or Excel is restarted.

Bill


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.