Nigel,
Check out the Excel pages at
www.nwarwick.co.uk.
You will find a ready made VBA routine to do exactly what you want.
HTH
Neil
www.nwarwick.co.uk
"Nigel" wrote:
Is it possible to find out who is logged into the computer, I want to use
this function to decide whether a piece of of code shoud run
ie
if username="bob" then
do this
end if
Thanks