Hi Dennis,
Hmmm...If the file name is valid for the Excel file, this should work..I suppose you could try GETOBJECT("&cExcelFile.")
Or try to explicitly name the file, like GETOBJECT("C:\My Documents\MySheet.XLS") and see if that works.
I am assuming that you have Excel installed? And that it is the default OLE application for files with an XLS extension?
>Hi All,
>When execute this coding,
>MBUDVAR = GetObject(cExcelFile) && the cExcelFile is variable which contain the file name of Excel Worksheet &&
>the OLE 0x80004005 would be occured, how can i solve this.
>
>Waiting my any assistance ?
>
>Dennis
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05