Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42732

VBA To Use Macro To Click On Image Link in IE

$
0
0
I have tried a couple of different ways to click on the "yes" image on a web page in IE with no luck. Any suggestions on how to do this would be greatly appreciated.



Source code:

<a href="/giveaway/500-love-for-learning-giveaway/enter"><img
src="http://cdn.sheknows.com/giveaways/no.gif" alt="No" /></a>
<a href="/giveaway/500-love-for-learning-giveaway/terms"><img
src="http://cdn.sheknows.com/giveaways/yes.gif" alt="Yes" /></a>

My latest attempt to click Yes

'Click On Yes Button
IE.Document.img("yes").Click

Viewing all articles
Browse latest Browse all 42732

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>