Ken Johnson Wrote:
I've included the Lcase bit so that the
user can get away with being lazy and not bother with capitals and
lower case in the input of the sheet name.
Actually, with Bob's code, whether I type in 'CheckThisOut' or
'checkthisout', it always matches the sheet (providing it actually
exists.) I'm not concerned with UpPErlOwERcaSe matching to be honest.
But I like the fact that there are different approaches to the same
solution (essentially). Makes me take a look at both of them and
maybe, just maybe, have some of it seep through into my brain...
And the || comes from another C-like language (rather distant now) I
used to code in:
Code:
--------------------
|| - OR
&& - AND
--------------------
And the usual (to me):
Code:
--------------------
<eval ? return_1 | return_2
Which is the same as:
If <eval Then return_1 Else return_2
...but without the closing End If
--------------------
--
AMK4
------------------------------------------------------------------------
AMK4's Profile:
http://www.excelforum.com/member.php...o&userid=19143
View this thread:
http://www.excelforum.com/showthread...hreadid=504320