Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get Excel XP out of memory?

Status
Not open for further replies.

gdev

Technical User
Joined
Mar 12, 2001
Messages
38
Hi,
Please help.
While importing an Excel spreadsheet to Access, I am using:
xlapp.workbooks close
xlapp.quit
set xlapp = nothing.
Yet Excel stays in memory.
I attempted to use xlapp.workbooks.close (false), but received an error message.

Please assist.

Thanks Gwen
 
How are you importing the Excel spreadsheet to Access ?
Seems your code use implicit instantiation of the Excel.Application object like, eg, ActiveSheet instead of xlapp.ActiveSheet ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Hi gdev,

I echo PHV's question - how are you doing the import?

Also, how do you know Excel stays in memory? Is it because it remains visible? In other words is it failing to close workbooks and/or quit? or is it apparently working but still showing in the task list?

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at [url=http://www.vbaexpress.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top