04-01-2010, 11:01 AM
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