06-07-2013, 10:12 PM
I've been trying to get around this for a while and can't seem to get it. The code below gives the error
"Object doesn't support this property or method: rCount=Browser("Yahoo!").Page("Yahoo! Finance - Business").WebTable("Most Actives","index:=0").RowCount"
The end result I'm trying to achieve is copy data from "Most Actives" table on this site and paste it into a text document.
Any ideas? Thanks
"Object doesn't support this property or method: rCount=Browser("Yahoo!").Page("Yahoo! Finance - Business").WebTable("Most Actives","index:=0").RowCount"
The end result I'm trying to achieve is copy data from "Most Actives" table on this site and paste it into a text document.
Any ideas? Thanks
Code:
Browser("Yahoo!").Page("Yahoo!").Link("Finance").Click
Browser("Yahoo!").Page("Yahoo! Finance - Business").Sync
Wait 10
Dim rCount
Dim cCount
Dim cData
rCount=Browser("Yahoo!").Page("Yahoo! Finance - Business").WebTable("Most Actives","index:=0").RowCount
cCount=Browser("Yahoo!").Page("Yahoo! Finance - Business").WebTable("Most Actives","index:=0").ColumnCount
For r=1 to rCount
cCount=Browser("Yahoo!").Page("Yahoo! Finance - Business").WebTable("Most Actives","index:=0").ColumnCount(r)
For c=1 to cCount
cData=Browser("Yahoo!").Page("Yahoo! Finance - Business").WebTable("Most Actives","index:=0").GetCellData(r,c)
msgbox cData
Next
Next