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
What is checking bitmaps?
i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet
What is active screen?
What ate the Technologies supported by QTP?
Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.
What is Unicode Compatibility?
Explain building blocks of the bpt framework ?
what is the difference between modular framework & datadriven framework
For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?
how did u use automating testing tools in ur job?
banking project description for software tester
What are the different properties of an web object
When using descriptive programming?
What is the syntax to call one action in another?
How does quicktest professional identifies the object in the application?