Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can QTP AOM identify word documents that are already opened
#2
Not Solved
Hi Anil,

sorry for Late Reply.

Please check the below code

Code:
Set element = description.Create
element("micclass").value = "Window"
element("regexpwndtitle").value = "Microsoft Word"
Set col = Desktop.ChildObjects(element)

msgbox col.count

For i =0 to col.count-1
    col(i).close

Next

it might be useful for some other people
Thanks
-Tanya
Reply


Messages In This Thread
RE: Can QTP AOM identify word documents that are already opened - by tanyamrz - 08-13-2013, 12:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT Word automation wannel 1 2,322 10-31-2016, 06:59 PM
Last Post: wannel
  [UFT] Close opened folder robertosalemi 1 3,335 02-10-2016, 07:06 PM
Last Post: robertosalemi
  Error while saving an already opened Excel TurtleRock 1 3,520 08-28-2014, 06:35 PM
Last Post: dplank
  AOM script is running only one or two scripts. jramya 4 4,120 07-24-2014, 06:15 PM
Last Post: jramya
  How to invoke the recording of QTP using AOM(automation object model) of QTP shailesh.gcettb@gmail.com 2 4,111 05-08-2014, 10:30 AM
Last Post: Shriram

Forum Jump:


Users browsing this thread: 1 Guest(s)