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
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
What is the use of sendkeys and what are send keys
Describe function procedure in vbscript.
what is the difference between the modular framework and datadriven frame work
How does you pass optional arguments in qtp?
How to test the login page in different ways in automation testing and i need code?
Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,
Hi How to retrieve data from web element line by line?
can i compare two databases using QTP ?
What are the Test design techniques you uses in ur project?
I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!
How to change the priorities of the recovery scenario properties?
How do you configure QTP AND Test director?
Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........
What are the features supported by UFT?