
VB Automation with Excel does not close Excel instance
Hi Darrin,
You have to preface the Cells.Find with the appropriate object so it is
fully-qualified. Maybe something like
xlApp.Workbooks(1).Worksheets(1).Cells.Find would work. If that doesn't
help, or if you're already doing that, post the relevant code, including
your Automation declarations, instantiation and setup code, the Cells.Find
code, and your references "cleanup" code.
Regards,
Jake Marx
Quote:
> I have a VB6 app that opens Excel and then sets the active sell to A1.
Then
> it does a Cells.find. The problem is that if I do a Cells.Find I can't
seem
> to close Excel, even after doing a quit and de-referencing all the
objects.
> The Excel instance goes away just fine without the code that does the
> Cells.Find. When I look at the Locals windows, all objects are set to
> nothing.Has anyone else seen this? Thanks.