Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Closing the Excell sheet opened
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Can any one please tell me how to close a excell sheet opened by qtp.it is working itf i give the coordinate of the window for drap and drop,but i want to close it without giving the position as the position may change depending on the screen resolution
Code:
'Window("regexpwndtitle:= 127621January.*","text:=Microsoft Excel.*").WinObject("NetUIHWND").Drag
'Window("regexpwndtitle:= 127621January.*","text:=Microsoft Excel.*").WinObject("NetUIHWND").Drop
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Tbull,

Its preferable to use
PHP Code:
SystemUtil.CloseProcessByName("EXCEL.EXE"
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Thank you for the help,the solution works
Its preferable to use
Code:
SystemUtil.CloseProcessByName("EXCEL.EXE")
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] Close opened folder robertosalemi 1 3,335 02-10-2016, 07:06 PM
Last Post: robertosalemi
  SAP GUI gets hanged while closing the Windows Pop Up kathirvelnagaraj 0 5,527 10-23-2015, 06:47 PM
Last Post: kathirvelnagaraj
  Error while saving an already opened Excel TurtleRock 1 3,520 08-28-2014, 06:35 PM
Last Post: dplank
  recovery scenario for closing a message box itself ashima 0 2,238 12-26-2013, 11:10 AM
Last Post: ashima
  Can QTP AOM identify word documents that are already opened anil2u 2 4,370 09-05-2013, 12:45 PM
Last Post: anil2u

Forum Jump:


Users browsing this thread: 1 Guest(s)