Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP script convertion in excel
#3
Solved: 11 Years, 4 Months ago
Urgent.......
Anybody..! Can you please help me.....

Actualy I want to export all the values of a dropdown list in Excel file.
Here my code snippet attached below....

Code:
dim cnt
cnt  = Window("Flight Reservation").WinComboBox("Fly From:").GetItemsCount     '''Select "Denver"
MsgBox cnt
For i=0 to cnt-1
    Dim itm
    itm = Window("Flight Reservation").WinComboBox("Fly From:").GetItem(i)
    
    DataTable.AddSheet ("Fly From").AddParameter "Fly From", itm    DataTable.GetSheet("Fly From").SetNextRow
    datatable.ExportSheet "C:\Users\abhijitp\Desktop\result.xls", "Fly From"
    MsgBox itm
Next
But the problem is....values are being added in same row and different column. But I want to add these values in same column.
Please help me to do it.


Please help me to post new thread....
I have subcribed with User Name and password. But I could not find out any link to post new thread.
Reply


Messages In This Thread
QTP script convertion in excel - by deepaster - 03-14-2011, 03:48 PM
RE: QTP script convertion in excel - by basanth27 - 03-14-2011, 04:44 PM
RE: QTP script convertion in excel - by abhijitp - 03-14-2011, 07:43 PM
RE: QTP script convertion in excel - by deepaster - 03-15-2011, 09:54 AM
RE: QTP script convertion in excel - by basanth27 - 03-15-2011, 11:04 AM
RE: QTP script convertion in excel - by deepaster - 03-15-2011, 11:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  VB Script to separate upper & small Letters from a string and store in excel pradeep537 1 2,216 08-05-2016, 12:26 AM
Last Post: Ankur
  UFT taking different script execution timings while comparing 2 excel files. sudheer 0 2,359 06-26-2015, 03:28 PM
Last Post: sudheer
  How to read and write in excel through QTP script shwetha_m 5 29,727 03-14-2014, 02:58 PM
Last Post: venkatesh9032
  QTP 11, Win 7 - Issue while saving the Excel through the script.bu fine in XP sivasuman 0 2,310 11-15-2013, 01:38 PM
Last Post: sivasuman
  Inserting comments along with name of the script in excel Prashanth 0 1,799 05-16-2013, 11:28 AM
Last Post: Prashanth

Forum Jump:


Users browsing this thread: 2 Guest(s)