Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Storing to an Excel SS
#2
Not Solved
Assuming you have created the column header (column,row,DocView)in an empty excel file,

Code:
Set objExcel = createobject("Excel.Application")
objExcel.Visible=True
objExcel.Workbooks.Add
Set TableObj = Browser("Wisdom").Page("Wisdom IA_2").Frame("parent").WebTable("Select All")

RowCount = TableObj.RowCount
msgbox RowCount

For i = 1 to RowCount

[b]objExcel.Cells(i+1, 1).Value = i[/b]

ColCount = TableObj.ColumnCount(i)
'msgbox ColCount

For j = 1 to ColCount

[b]objExcel.Cells(i+1, 2).Value = j[/b]

ChildCount = TableObj.ChildItemCount(i, j, "Link")
If ChildCount > 0 Then
InnerHtml = TableObj.Object.rows(i-1).Cells(j-1).innerHTML
For k = 0 to ChildCount - 1
Set LinkObj = TableObj.ChildItem(i, j, "Link", k)
LinkName = LinkObj.GetROProperty("text")

[b]objExcel.Cells(i+1, 3).Value = TableObj.getcelldata(i,j)[/b]

Next
End If
Next
Next
Reply


Messages In This Thread
Storing to an Excel SS - by mv8167 - 06-11-2011, 01:28 AM
RE: Storing to an Excel SS - by rajpes - 07-05-2011, 08:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Storing runtime value into datasheet priyaUFTlearner 4 3,218 04-10-2015, 10:08 PM
Last Post: priyaUFTlearner
  storing QTP test resources(library functions,repositories) in Quality Center Pallavi 8 9,269 09-21-2009, 02:14 PM
Last Post: basanth27
  Problem with storing value in DataTable Parke 3 2,810 10-02-2008, 04:35 PM
Last Post: Parke
  Storing dynamic data at run time Rupesh 5 5,080 07-29-2008, 02:13 AM
Last Post: kishoreinchennai

Forum Jump:


Users browsing this thread: 1 Guest(s)