declare long FindExecutable in "shell32.dll" ; string cFile, string cDirectory, string @cResult cBuffer = space(255) nRetVal = FindExecutable("important.xls",'\\SMDSRV3\Sampling\Application\Executable' , @cBuffer) if nRetVal < 32 messageBox("You don't have Excel installed, sorry.",64) return endifIt runs okay somethimes, but not others. When I changed 32 to 31, it always seems to run fine. However, I have not tested it on a machine without Excel, and I'm concerned that may cause a problem.