
Signature
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Thanks for the response.
But I am already using that and it only works if, before running the
macro, I open the excel. Doing that it works perfectly, open the file I
want, edit every thing I need, close the file... But I do not want the
user have to open the excel before run the system. So, thats my problem.
I am using
Set appExcel = GetObject(, "Excel.Application")
appExcel.Workbooks.Open (strSheet)
Any idea?
Thanks,
Ottoni.
Michael Bauer - 30 Jun 2005 20:29 GMT
Frederico, you can use your first statement. If it raises an error, i.e.
appExcel is nothing, then you know that Excel isn´t running already. In
that case call CreateObject("Excel.Application") instead of GetObject.

Signature
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
> Thanks for the response.
> But I am already using that and it only works if, before running the
[quoted text clipped - 12 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***