Also, if you could, excel has an intrinsic function of Range object called copyfromrecordset with a recordset parameter (97 with DAO recordset and 2000 with ADO recordset)
Yo wouldn't need a loop with it.
Main Topics
Browse All TopicsPlease follow the link.
http://us.f1.yahoofs.com/m
Here the problem is when the user opts to Overwrite an existing file but later on when the application asks to confirm the Overwrite the existing file... The code generates an error and the control flow shifts to label "err:" .. here though i've closed all the related instances .. still an instance of the "Excel" application is running in the memory.. How can I close that specific instance.. Or u can tell me is there a way to catch a ruuning instance of an application... Solution is required urgently and ASAP... All realated suggestion for changes in code are also welcome..
Thanks.
-SunShines
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi SunShines,
This old question (QID 20567137) needs to be finalized -- accept an answer, split points, or get a refund. Please see http://www.cityofangels.co
Thanks Richie_Simonetti,
Sorry for responding so late ... But I've got my solution in some other way ... so plz dont bother abt the question and abt the grade/point part well i cant give any thing to any body (so dont mind) ... I do appreciate ur help ... and look futher for more in comming future ...
Sunshines,
CleanupPing does not respond to posts. In the future, please do not accept any answers from CleanupPing. Inside of the CleanupPing message was a link to how to close the question and that link includes what to do when you have solved the question yourself. Please take time to read this now. I am handling this question by refunding your points so you won't have to do anything more with this one, but please be more careful in the future. Thanks
SpideyMod
Community Support Moderator @Experts Exchange
Business Accounts
Answer for Membership
by: Richie_SimonettiPosted on 2003-03-28 at 21:21:04ID: 8229473
shorry, how do you run this code and in which line do you get the error?
Also, why do you set W to nothing afer populate the sheet and why do you use those labels?