To give you a quick background on what I'm trying to do - I'm trying to scrape odds from multiple bookies and exchanges through excel VBA through a macro that would trigger every second minute to refresh the prices..
While I'm comfortable with the referencing a cell element (or even a row element and then indexing the cell (as with my code below), some sites (or even just some pages within sites) don't seem to reference any IDs I'm too green to HTML and scrapping in general to work around this - This is an example of the problem I'm encountering (exploded out to the last):
Now, if there's an alternative to appIE.document.getElementById() I'm all for it because the button class below has more info for me then just the 3.1 price, such as the liquidity (in the above example there's €1079 available to lay on this exchange at that price) I presume this would involve absolute referencing down to the "bet button price" and "bet button size" classes?
The code I have at present involves declaring and assigning the appIE:
Dim appIE as Object
Set appIE = CreateObject("internetexplorer.application")
Declaring the element and assigning it:
Dim targetElement As Object
Set targetElement = appIE.document.getElementById("xxxx")
Storing the value as a double
Dim myValue as Double
myValue = targetElement.innerHTML
and then populating the target cell with myValue
Any and all help would be greatly appreciated - If you need more detail, just let me know.


HTMLDocumentobject that you can investigate:getElementsByClassName,getElementsByName,getElementsByTagName,querySelectorandquerySelectorAll.getElementsByClassName([Call name]).Priceto return the price property (2.68 in the above example) andgetElementsByClassName([Call name]).Sizethat would return €1079 etc..? - I'm in work currently so, for obvious reasons, I can't be playing around with it at the moment - I'll play around with it further when I get home either way. Thanks for you help!getElementsByClassName([Class name here]).class(sPrice_String).innerHTML?querySelector- msdn.microsoft.com/en-us/library/cc288169(v=vs.85).aspx