Essentially it is a macro that you can call directly from the worksheet, as
it it were a function (UDF - User Defined Function). To create it, in Excel
Alt-F11 will take you into the VBIDE. In the menu, select Insert>Module,
then just copy that code into there. Then close the VBIDE.
BTW, you can also get the login name which is a bit more reliable than the
application name, as the user cannot change it. The VBA for that is
Function UserName()
UserName = Environ("UserName")
End Function
--
HTH
RP
(remove nothere from the email address if mailing direct)