Hello,
I navigate to a site using vba and get to where I need to be using a form. I need the vba to grab something from the HTML and put it into an excel sheet.
<span id="lblCustSiDt" style="text-decoration:underline;">10/20/2011</span>
Above is the html of what I am trying to grab (I'd preferably just want the date)
And this is what I've written in VBA that's not working:
Set textiwant = ie.document.All("lblCustSiDt").innerHTML
Windows("Order Assignment Template").Activate
Sheets("OA").Range("L2") = textiwant
any idea?
I navigate to a site using vba and get to where I need to be using a form. I need the vba to grab something from the HTML and put it into an excel sheet.
<span id="lblCustSiDt" style="text-decoration:underline;">10/20/2011</span>
Above is the html of what I am trying to grab (I'd preferably just want the date)
And this is what I've written in VBA that's not working:
Set textiwant = ie.document.All("lblCustSiDt").innerHTML
Windows("Order Assignment Template").Activate
Sheets("OA").Range("L2") = textiwant
any idea?