I want to check the availability of an item @ www.bgstechnic.com/availability
for instance "1195"
I wrote this VBA code:
Sub ImportMyData()
Dim IE As New InternetExplorer
IE.Visible = False
IE.navigate "http://www.bgstechnic.com/availability?processed&F1244467957750MNRHTT=_"
Do
DoEvents
Loop Until IE.readyState = READYSTATE_COMPLETE
IE.document.getElementById("item-numbers").Value = "1195"
Set goBtn = IE.document.getElementById("bgs-submit")
goBtn.Click
Do
DoEvents
Loop Until IE.readyState = READYSTATE_COMPLETE
Dim sdd As String
sdd = IE.document.getElementById("availability-results").innerText
MsgBox sdd
End Sub
I need the text "Item in in stock, more than 50 pcs. available" to be inserted in Excel, but I don't manage to find the ID of this subtable (?)