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 / ashish wadhwa

'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 ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Have you faced any problems with object repository?

592


Define Canvas view of UFT?

620


How to export quicktest professional (qtp) results to an .xls file?

603


I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all

1524


Hi All, How to get repeated word in string . Thanks Balaji

942






Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?

1359


How many types of actions are there in quicktest professional?

514


Explain types of output values?

569


i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework

1608


Explain quicktest professional (qtp) testing process?

539


why should we give deliver good quality software?

1628


How many types of recording modes are there?

598


How to write business scripts using object repository with different scenarios

1390


Which functionalities of QTP used in banking project? pls any say answer?

1448


Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....

1430