|
-
Excel doesn't close when running on win 98 / excel 2000
I've developped an application which imports data from excel. In win XP
excel XP everithing works ok, but in win 98 excel 2000, the Excel doesnt't
close after the automation. The code I use:
'Creating the instance
Dim xlApplication As Object = CreateObject("Excel.Application")
xlAplicacion.Visible = False
Dim xlWorkbook = xlAplicacion.Workbooks.Open(ExcelFile)
Dim xlSheet= CreateObject("Excel.sheet")
xlSheet = xlWorkbook.Worksheets("Sheet1")
'...
'Closing
xlSheet = Nothing
xlWorkbook.Close(False)
xlWorkbook = Nothing
xlApplication.Quit()
xlApplication = Nothing
If you have the answer, don't hesitate to tell it to me TIA
Regards,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks