LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default VBAProject unclosed even excel file was closed

I need to use some worksheets in the current workbook as datasources and run some queries.
The code to connect the workbook is just like below

Set dbs = OpenDatabase(ThisWorkbook.Path & "\" & ThisWorkbook.Name, dbDriverCompleteRequired, True, _
"Excel 8.0;")
strSQL = "SELECT .... "
Set rs = dbs.OpenRecordset(strSQL)

But I found that the VBAProject keep unclosed even the excel file was closed after running queries. Also, the
performance seems dropped after running queries serveral times. Anyone know why ? Any problem with my code ?


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I closed an excel file without saving the changes. Can I retrieve cliffordof fremontca Excel Discussion (Misc queries) 1 April 9th 10 12:16 AM
How to recover excel file that was closed without saving? JKhatavkar Excel Discussion (Misc queries) 2 October 4th 05 10:42 PM
VBAProject remains open after file is closed sequoia sam Excel Discussion (Misc queries) 4 August 2nd 05 07:59 PM
How can I add values to a closed excel file? Ali Excel Worksheet Functions 8 June 11th 05 01:13 AM
Excel is not asking to save a changed file when the file is closed Ron Excel Discussion (Misc queries) 2 March 14th 05 01:05 AM


All times are GMT +1. The time now is 10:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"