>I am sorry, I should have been more specific. I am working with VFP5.0
>I can't seem to open an excel sheet. I appreciate your help.\
There are a number of other ShellExecute classes that wrap the API functions for you, I still use David Frankenbach's. But here is the straight up API language to do what you need:
DECLARE INTEGER ShellExecute ;
IN SHELL32.dll ;
INTEGER nWinHandle,;
STRING cOperation,;
STRING cFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow
DECLARE INTEGER FindWindow ;
IN WIN32API ;
STRING cNull,STRING cWinName
RETURN ShellExecute(FindWindow(0,_SCREEN.caption),;
"Print","MyExcelFile.xls",;
"",SYS(2023),1)
Erik Moore
Clientelligence