*snip*
>oExcel.Sheets("Hoja1").Select <- this line pass OK
>oExcel.Range("C25").Select <- classic OLE unknown COM state error
>
Off the top of my head, try accessing the range as a property of Sheets and not Application.
oExcel.Sheets("Hoja1").Range("C25").Select
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao