Sergey:
Thanks, that helped. It's hanging because a dialog is up asking if I want to update refernces to other files. Funny - in 2003, this dialog appeared even though I set visible to .f.. I guess I'll have to figure out how to do this in 2010 OR open the file with some setting that suppresses the question. Any ideas?
Thanks,
Yossi
>Try to set loExcel.VISIBLE = .T.
>Maybe it'll help see the problem
>
>>
>>This code hangs once I installed Excel 2010. BTW, I left Excel 2003 on my computer as well.
>>
>>
>>LOCAL loExcel AS Excel.APPLICATION
>>
>>CLOSE ALL
>>
>>SET PROCEDURE TO sysproc
>>SET DELETED ON
>>
>>CLEAR
>>
>>SUSPEND
>>
>>USE flckmast ORDER flcode
>>
>>loExcel = CREATEOBJECT("Excel.application")
>>loExcel.VISIBLE = .F.
>>
>>loWorkBook = loExcel.Workbooks.OPEN('P:\Flock Information.xls')
>>
>>
>>Thanks,
>>
>>Yossi