Thanks for the help Paco. I will test this.
>Ramil,
>
>This work for me either in development environment as in runtime...
>
>...
>
>shellexec(excelfilename)
>
>FUNCTION SHELLEXEC
>LPARAMETER lcLink, lcAction, lcParms, nWin
>
>lcAction = IIF(EMPTY(lcAction),"Open",lcAction)
>lcParms = IIF(EMPTY(lcParms),"",lcParms)
>nShowWin = IIF(EMPTY(nWin),3,nWin)
>
>DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
> INTEGER nWinHandle, STRING cOperation, STRING cFilename, ;
> STRING cParameters, STRING cDirectory, INTEGER nShowWindow
>
>RETURN Shellexecute(vfp_handle,lcAction, lcLink, lcParms, SYS(2023),nShowWin)
>
>
>** vfp_handle should be 0 **
>
>...
ramil
~~ learning to stand still