Tick Checkbox IE Automation Excel VBA
Clash Royale CLAN TAG #URR8PPP Tick Checkbox IE Automation Excel VBA I'm trying to export a file from website but for that i have to select the elements i want to export from a checkbox. The HTML code for the checkbox i want to tick is: <input id="MainReport_ctl04_ctl09_divDropDown_ctl00" type="checkbox" name="MainReport$ctl04$ctl09$divDropDown$ctl00" onclick="$get('MainReport_ctl04_ctl09').control.OnSelectAllClick(this);" class=""> I've tried: With IE.document.getElementsByName("MainReport$ctl04$ctl09$divDropDown$ctl00") .Item.Click end with And With IE.document.getElementsByName("MainReport$ctl04$ctl09$divDropDown$ctl00") .Item(0).Checked = True End With And Set obj = IE.document.getElementsByName("MainReport$ctl04$ctl09$divDropDown$ctl00") obj.FireEvent ("onclick") But nothing seems to work. Could someone help me please? Thank u in advanced! ...