Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Writing to Run time data table
#2
Not Solved
Hi Neetha,
1>
Code:
Set xl = createobject("Excel.Application")
xl.Application.Visible = true
Set workbook = xl.Workbooks.Open ("C:\Desktop\KED.xls")
Set sheet = Workbook.worksheets ("TESTCASE")
row = sheet.usedrange.rows.count
col = sheet.usedrange.columns.count
For i=1 to row
    For j=1 to col
a=sheet.cells(i,j).value    'place here the row name so that when it enters the loop u will be able to see for which row the code is working presently
    Next
Next
xl.Quit
Set xl = nothing
2> take the output in a variable then set in specific cell.
---------suppose output comes in variable b then
Code:
sheet.cells(k,h).value =b
' also if u want output in runtime datatable then you can add a sheet in the beginning (datatable.add) and write value in it during runtime.
'u can employ print/msgbox keywords to display the output value too.
Reply


Messages In This Thread
Writing to Run time data table - by Neetha - 08-22-2015, 06:52 AM
RE: Writing to Run time data table - by ADITI1992 - 08-23-2015, 01:24 PM
RE: Writing to Run time data table - by Neetha - 08-24-2015, 08:10 PM
RE: Writing to Run time data table - by supputuri - 08-26-2015, 07:50 PM
RE: Writing to Run time data table - by Neetha - 08-27-2015, 06:20 AM
RE: Writing to Run time data table - by supputuri - 08-27-2015, 10:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  data table use uft_usr 1 2,116 06-29-2016, 05:23 PM
Last Post: Ankesh
  QTP not recogonising object during run time Lavanya N 2 3,553 10-28-2015, 12:46 PM
Last Post: vinod123
  How to Export run result viewer with CAPTURED DATA and save it in PDF,or Doc,or HTML akhandesh 0 2,809 07-16-2015, 06:03 PM
Last Post: akhandesh
  Writing values to DataTable chewbecca 2 2,988 04-09-2015, 05:48 PM
Last Post: chinnikrishna
  Reading and writing is the same text file poulomi21b 2 5,860 07-08-2014, 12:39 PM
Last Post: poulomi21b

Forum Jump:


Users browsing this thread: 1 Guest(s)