hi there,
I try to fill in an online form using vba,
I use this code:
IENew.document.getElementById("id_price").Value = 850
There are 2 forms on the homepage, one for buying one for selling, the problem is, this code line only works for the buy form. How do I have to adjust the line of code I have to tag not the first "id_price" in the html code, but the second?
here is a part of the html code,
for="sell_amount" class="label">Amount to sell:<a href="<a href=" http:="" www.mrexcel.com="" forum="" view-source:https:="" www.bitstamp.net="" market="" order="" #"="" target="_blank">#" id="sell_all" class="all">(All)<input autocomplete="off" class="input" id="id_amount" name="amount" style="margin:0px;" type="text">BTC
<!-- POMEMBNO! pri napaki je tukaj dodan class .error --><label for="sell_amount_usd" class="label">Sell price:</label><a href="<a href=" http:="" www.mrexcel.com="" forum="" view-source:https:="" www.bitstamp.net="" market="" order="" #"="" target="_blank">#" id="sell_advanced" class="all">(Advanced)<input autocomplete="off" class="input auto_update" id="id_price" name="price" style="margin:0px;" value="804.30" type="text">USD
<!-- POMEMBNO! pri napaki je tukaj dodan class .error --><label for="sell_limit_price" class="label">Buy if executed price:</label><input autocomplete="off" class="input auto_update" id="id_limit_price" name="limit_price" style="margin:0px;" type="text">
I try to fill in an online form using vba,
I use this code:
IENew.document.getElementById("id_price").Value = 850
There are 2 forms on the homepage, one for buying one for selling, the problem is, this code line only works for the buy form. How do I have to adjust the line of code I have to tag not the first "id_price" in the html code, but the second?
here is a part of the html code,
for="sell_amount" class="label">Amount to sell:<a href="<a href=" http:="" www.mrexcel.com="" forum="" view-source:https:="" www.bitstamp.net="" market="" order="" #"="" target="_blank">#" id="sell_all" class="all">(All)<input autocomplete="off" class="input" id="id_amount" name="amount" style="margin:0px;" type="text">BTC
<!-- POMEMBNO! pri napaki je tukaj dodan class .error --><label for="sell_amount_usd" class="label">Sell price:</label><a href="<a href=" http:="" www.mrexcel.com="" forum="" view-source:https:="" www.bitstamp.net="" market="" order="" #"="" target="_blank">#" id="sell_advanced" class="all">(Advanced)<input autocomplete="off" class="input auto_update" id="id_price" name="price" style="margin:0px;" value="804.30" type="text">USD
<!-- POMEMBNO! pri napaki je tukaj dodan class .error --><label for="sell_limit_price" class="label">Buy if executed price:</label><input autocomplete="off" class="input auto_update" id="id_limit_price" name="limit_price" style="margin:0px;" type="text">