oExcel = createobject( "excel.application" ) oExcel.Visible = .t. oExcel.Workbooks.Open( "TheSpreadsheet.xls" )This will bring it to the foreground;
DECLARE INTEGER SetForegroundWindow IN WIN32API INTEGER SetForegroundWindow( oExcel.Hwnd )The user can do what ever they want inside Excel.
if ( type( "oExcel.ActiveWindow" ) = "U" )Then you can just get rid of your object with:
oExcel = .null.
>1. Open an excel worksheet within VFP ( How To ???)