3.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.
Answer Posted / jagdish
'For Excel
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
'Adding the workbook
Set objWorkbook = objExcel.Workbooks.Add
'Adding the text in the workbook in 1st row and 1st Column
objExcel.Cells(1, 1).Value = "Hi This is me Ashish"
'Saving the excel file
objWorkbook.SaveAs("D:\Sample.xls")
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to find that tools work well with your existing system?
In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.
how to do the batch testing in test director using manual testing procedure?
What is the use of Debug Viewer?
How does you pass optional arguments in qtp?
Give the syntax to import/export xls into qtp.
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
What is the diff between image and bitmap check point?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
Mention the test steps of qtp.
What is the Difference between test object and run time object?
How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks
How to suppress warnings from the test results page?
What is the short cut keys for the following?
how do i know how to use tools