It is not a routine, it is a variable being tested for in the case
statement.It applies to VBA, not to Excel itself.
If you want a case type function in a worksheet, there isn't one. There are
many lookup functions that might do what you want, but you would need to
present the problem to tell.
--
HTH
RP
(remove nothere from the email address if mailing direct)