VBA to click checkbox in Internet Explorer

  • I'm trying to add a check to a checkbox on an intranet page. I've tried using the below code with no luck,



    below is the webpage html I'm trying to reference.


    <TR style="BACKGROUND-COLOR: #efefef" man_type="Item" man_level="0" man_kids="webclient/h3cF1ztjAPkEPD? TC_file=common/data/wsochildren.xml"
    man_tag="h3cF1ztjAPkEPD" man_name="BATCH-EXPORT" man_link="webclient/h3cF1ztjAPkEPD" man_baseclasslist="Item%2CWorkspaceObject"
    man_class="Item" man_parent_uid="h3cF1ztjAPkEPD" man_uid="h3cF1ztjAPkEPD" man_object_string="BATCH-EXPORT" man_expanded="true"
    man_collapsed="null"><TD style="TEXT-ALIGN: center">
    <INPUT type=checkbox value="on"></TD>

  • Re: VBA to click checkbox in Internet Explorer


    are you sure that the checkbox name you are using is the right checkbox name or id..


    any ways try this..




    its difficult to guess with out accessing the web page...

  • Re: VBA to click checkbox in Internet Explorer


    No luck, I tried many different checkbox names. Starting to wonder if it's possible with the page.

  • Re: VBA to click checkbox in Internet Explorer


    hey olsonj dont give up easily see if the checkbox is inside the frame how ever you can loop through all the elements in the web page and see if you finds the correct ID for the check box


  • Re: VBA to click checkbox in Internet Explorer


    Hmmm, thought I replied to this yesterday... Well anyway. thanks, I'll try not to give up and thanks for your help. I added your code and couldn't get a message box to come up, it seems nothing happens.

  • Re: VBA to click checkbox in Internet Explorer


    is the link accessable from outside means can i see have the webpage so that i can take a look of that invisible combobox ID.

  • Re: VBA to click checkbox in Internet Explorer


    Sorry no it's an internal site only. Would it be helpful to take a screenshot and paste some of the source code?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!