Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

In VB6, Is there a way/solution to catch/get an Instance of an application running in background? Solution Reqd. Urgently.

Posted on 2003-03-28
7
Medium Priority
?
205 Views
Last Modified: 2012-06-21
Please follow the link.

http://us.f1.yahoofs.com/msgr/sunshines_inindia/.tmp/test.txt?ms_____Db.jiR8ZL

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
0
Comment
Question by:SunShines
6 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 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?
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 8229491
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.
0
 

Expert Comment

by:CleanupPing
ID: 8531379
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.com/Experts/Closing.htm for information and options.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:SunShines
ID: 8532741
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 ...
0
 

Author Comment

by:SunShines
ID: 8532767
Hello CleanupPing,

I need help to close my question. Please close this question. As I've found the solution myself.

I dont know what to do now with the question. Plz help to close this question.

-SunShines
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8650361
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
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question