PDA

View Full Version : Get child ID from parent ID



daojidpjidas
06-16-2016, 08:23 AM
Hello,

I hope this in the right place, as I'm doing this through Excel, even though it has to do with IE.

I have a page loaded in IE through VBA. I'm trying to get the child id's from the HTML into an array. Example:



<html>
<body>
<div id="oInput">
<input id="1" type="text">
<input id="2" type="text">
<input id="3" type="text">
<input id="4" type="text">
<input id="5" type="text">
</div>
</body>
</html>

I found a thread on StackOverflow (cannot post links yet) does it using Javascript, which I suppose I could execute through VBA. However, it seems easier to just use entirely VBA. Thanks!