ssuresh711
New Member
- Joined
- Feb 6, 2019
- Messages
- 11
Hello Everyone,
I am not expert in VBA. Requesting your support to complete my macro. In the webpage I want to copy the status "Awaiting Business Review" in my excel sheet.
Below is my HTML Code.. I cannot disclose the website address. Apologize for that.
</div>
Below is my VBA Code.
.
I am not expert in VBA. Requesting your support to complete my macro. In the webpage I want to copy the status "Awaiting Business Review" in my excel sheet.
Below is my HTML Code.. I cannot disclose the website address. Apologize for that.
HTML:
<div title="" class="" id="scr_as_142209" systemid="sf_status_71128" screentype="FIELD"<!-- we always display cf's main div (div above)so we can re-enable disabled cf after auto-saved form reloads; we hide field if it's disabled --><table class ="cfHolder"><tbody><tr><td class="cfLabel" styel="vertical-align: top;"><span cflabel="Status" labelsystemid="sf_status">Status</span><div style="font-size: 70%;"></div></td><td class="cfValue" id="scr_as_142209_value" style="width: 70%; vertical-align: top;">Awaiting Business Review********> removeableFormElement.push('customFields[5].simpleValue');*********></td></tr></tbody></table></div>
Below is my VBA Code.
Code:
With objIE.document
Set element = .getElementsByTagName("td")
For Each f In element
If (f.getAttribute("id") = "scr_as_142209_value") Then
Sheet1.Cells(2, 4) = f.innerText
Exit For
End If
Next f
End With
Last edited: