Wednesday, 16 September 2015

HOW TO OPEN AN EXISTING WORD FILE IN QTP



HOW TO  OPEN AN EXISTING WORD FILE

Steps:
Create object using word application
Make the object visible
Open a new word file with help of open  method

Ans.

set word = createobject("word.application")
word.visible=true
Word.Documents.Open("C:\Documents and Settings\sachin\My Documents\abc.docx")

No comments:

Post a Comment