how to record a word doc using qtp i.e open a word doc,type
something and save the doc
can someone send me the code.
Answers were Sorted based on User's Feedback
Answer / ashok
This did not work. Displayed error " Object doesn't
support th is property or method 'doc.selection'
Can you please also send code for the following:"
Read word doc. Get font. Get Italic. Get Bold.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vijay
Set word = CreateObject("Word.Application")
Set doc = word.documents.Add
word.visible = True
word.selection.typetext " Open MSWord"
doc.saveAs "C:vin.doc"
word.quit
Set word = nothing
Set doc = nothing
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / chaitu
Dim word
Dim doc
Set word = CreateObject("Word.Application")
Set doc = word.documents.Add
word.visible = True
doc.selection.typetext " Open MSWord"
doc.saveAs "C:\chaitu.doc"
word.quit
Set word = nothing
Set doc = nothing
| Is This Answer Correct ? | 1 Yes | 3 No |
What is Optional step?
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
What are objects? how do you select the unknow object?
What is difference between shared and local object repository?
Hi guys, Please suggest some thing these points are correct???, Is UFT 12 and QTP outdated ??? and also VBscript is also deleted/Removed from QTP ???? Javascript is added latest and tool name is called JFT ??? From this year ??
How to work with multiple browsers when opened in the window, write the script for it
how can i replace any text from the qtp script with some anothere text
I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?
what is difference between calling a function and reusing an action?
What is the Risk Analysis? Waht types of risk analysis are there?
How to record right click of a context menu and click on the selection ?
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so