Hello everyone,
Bear with me as this is my first use of a forum!
My goal is to use VBA to login to a secure webpage and copy/paste the data from the main table on the page. The code works perfectly except for one thing - the website's default is to show 10 items per page. I am looking to grab 55 items and so if I was navigating the page by hand I would scroll to the bottom of the page and select view 100 items per page. In this way I can essentially copy and paste all of the records in one go. Bottom line is that I'd like my VBA code to select this '100 items per page' option and I'm completely lost as to how to accomplish this task.
In my search I've come across getelementsbyid and getelementsbyclassname, but I'm still unable to get this section of my code working.
Here is the HTML code from the website that holds the dropdown menu:
I'm not sure how to decipher this but I can match the 10, 25, 50, and 100 as the dropdown menu options.
I hope this information isn't too vague. Thank you to anyone who can help or point me in the right direction!
Bear with me as this is my first use of a forum!
My goal is to use VBA to login to a secure webpage and copy/paste the data from the main table on the page. The code works perfectly except for one thing - the website's default is to show 10 items per page. I am looking to grab 55 items and so if I was navigating the page by hand I would scroll to the bottom of the page and select view 100 items per page. In this way I can essentially copy and paste all of the records in one go. Bottom line is that I'd like my VBA code to select this '100 items per page' option and I'm completely lost as to how to accomplish this task.
In my search I've come across getelementsbyid and getelementsbyclassname, but I'm still unable to get this section of my code working.
Here is the HTML code from the website that holds the dropdown menu:
HTML:
<span tabindex="0" class="k-widget k-dropdown k-header very-short" role="listbox" aria-busy="false" aria-disabled="false" aria
-expanded="false" aria-haspopup="true" aria-readonly="false" aria-owns="" unselectable="on">
<span class="k-dropdown-wrap k-state-default" style="width: 40px;" unselectable="on">
<span class="k-input" unselectable="on">10</span>
<span class="k-select" unselectable="on"><span class="k-icon k-i-arrow-s" unselectable="on">select</span>
</span>
</span>
<select style="display: none;" data-role="dropdownlist">
<option selected="selected" value="10">10</option>
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
</span>
I'm not sure how to decipher this but I can match the 10, 25, 50, and 100 as the dropdown menu options.
I hope this information isn't too vague. Thank you to anyone who can help or point me in the right direction!