>oExcel.Sheets("Hoja1").Select <- this line pass OK
>oExcel.Range("C25").Select <- classic OLE unknown COM state error
Just a couple ideas...
1) Same problem using A1 instead of C25?
2) Does any other vfp Excel code/reference work after the first line? That is, is it that code exactly, or any code at all causes the error?
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.