Rick - Once again -- Thank You! for sharing your knowledge
of things Excel here!
Much appreciated!!!
Victor Delta: Not so long ago I'd have looked [blankly!] at
Rick's macro and gone away wondering just waht it was
his code was doing.
Then, I spent some time picking some of his code apart and
learning what it does .... time well spent, I assure you! <grin>
Hey Clif, thanks for the kind words... they are "much appreciated" as well.
I can't tell you how happy your last sentence above makes me. I know I tend
to write obfuscated (sometimes maybe even verging on "clever") code... so I
am always glad when someone tells me they have taken the time to dissect
what I have written in order to understand how it works because, in doing
so, they are telling me that they really wants to learn how to control Excel
better... and it makes me glad to know my code is being used as a learning
tool in that effort.
Just a follow up on the macro I posted. As written, it identifies a range
encompassing all cells that are displaying a value, whether that value is a
typed in constant or the result of a formula... the xlValues assignment to
the LookIn argument inside of each Find function is doing that... however,
there may be times when you need to identify all cells that
contains"anything", even formulas that are displaying the empty string. To
do that, just change the xlValues to xlFormulas.
Rick Rothstein (MVP - Excel)