Hello all... I am having some difficulty with Excel automation. Specifically, in a form method that is called from the click event of a button on the form, I have
The problem is that when the code hits the "loExcel = Createobject("Excel.Application")" line, it blows up with the following error:
"OLE error code 0x80070008: Not enough storage is available to process this command"
That sounds straightforward, but there is plenty of space on all disks in use by this form, and this code works perfectly well on the same machine when run in a separate program. The error only occurs within the form.
Anybody seen this before or have any thoughts?
Chandler
Code:
lcFile = _outputpathAdm + thisform.cDistErr + ".XLS"
loExcel = Createobject("Excel.Application")
With loExcel
.Workbooks.Open(lcfile)
.Visible = .t.
Endwith
"OLE error code 0x80070008: Not enough storage is available to process this command"
That sounds straightforward, but there is plenty of space on all disks in use by this form, and this code works perfectly well on the same machine when run in a separate program. The error only occurs within the form.
Anybody seen this before or have any thoughts?
Chandler