Answer Posted / rajni singh
Ucan use below function to kill excel object from task
manager:
'===========================================================
====================
Sub KillExcel ()
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer
& "\root\cimv2")
Set colProcesses = objWMIService.ExecQuery ("Select * from
Win32_Process Where Name ='Excel.exe'")
For Each objProcess in colProcesses
objProcess.Terminate()
Next
End Sub
'===========================================================
=====================
call KillExcel()
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How to record a qtp script ?
When you open QTP, how many sheets you can see?
What is the use of running the scripts in Hidden-mode in UFT?
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
what the difference between shared repository and per action repository?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
how to find that tools work well with ur existing system?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
Hi Guys, I want to place all of my values which i am getting it from a loop in to a global shee. For that i had written the script like this For i = 1 to ECOs-1 ECO = List(i).GetROProperty("innertext") DataTable.AddSheet("ECOList") DataTable.GetSheet("ECOList").AddParameter "ECOList",ECO AbortECO = DataTable.GetSheet("ECOList").GetParameter ("ECOList").Value msgbox AbortECO DataTable.GetSheet("ECOList").SetNextRow Using the above script, whenever the loop iterates it is creating new column "ECOLIST" in the sheet called "ECOLIST". It means, the values are displaying in the column wise even though i added the script " DataTable.GetSheet("ECOList").SetNextRow" . The cursor is not moving to the next line. Anybody help me out how to pass the values from script to the excel(Global/Local) sheet. Pls let me know @ nbabu11@gmail.com if you are not clear about the question.
What are the different recording modes?
Thanks....But can u tell me how i use the QTP for GIS with one Example...
How many number of actions possible in qtp?
What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.
HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.
How many types of parameters are there?