>>I want to click a buttom to lunch Excel with a excel document which a get from getfile().
>
>You could use ShellExecute and not use OLE Automation:
>
>
DECLARE INTEGER ShellExecute IN "Shell32.dll" LONG, STRING, STRING, STRING, STRING, LONG
>?ShellExecute(0,"Open","myexcelfile","","",0)
Better make sure you have an extension on that excel file, Mike, or Windows won't know what to do with it...
Erik Moore
Clientelligence