Below is the HTML I have to get the number from, but not sure how to pull only the number and not the last nested Span's text as well.
<li class="off" id="defense1">
<div class="item_box defense401">
<div class="buildingimg">
<a title="" class="detail_button tooltip js_hideTipOnMobile slideIn" id="details401" href="javascript:void(0);" ref="401">
<span class="ecke">
<span class="level">
<span class="textlabel">
Rocket Launcher
</span>
20.000
</span>
</span>
</a>
</div>
</div>
</li>
If I use the following VBA code, I get the text from both the Span I want and the inner span. How can I just pull out the #?
Dim IE as InternetExplorer
Set IE = new InternetExplorer
IE.document.getElementById("details401").innerText
I need VBA code that will filter just the middle Span's innerText.