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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hanging instance of Word and Excel objectts in Task Manager 1

Status
Not open for further replies.

pankajv

Programmer
Jan 30, 2002
178
IN
We are generating some excel and word documents through the VB code and saving them to the hard disk. But when we observed the Task Manager we found many instances of WinWord.exe and Excel.exe running. Can any body tell what are the possible reasons for this problem.
 
Are you closing it correctly?

MyXL.Application.Close
MyXL.Saved = True
MyXL.Application.Quit

Set MyXL = Nothing ' Release reference to the
' application and spreadsheet. Swi
 
When u create na object, u need to close it..

set the word object u r opening to Nothing when u finish exporting

something like this

set myWrdObj = Nothing
set myXLObj = Nothing

All the Best
Praveen Menon
pcmin@rediffmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top