Controlling Webpages from VBA

Wildman8

New Member
Joined
Feb 6, 2009
Messages
1
Does anybody know how to control a website through VBA? Specifically, I am looking for the VBA code to press the "Next" and "Previous" buttons on a web page. This is relatively easy in some cases as the anchors usually have a "href" to direct the code to a new location. However, some sites seem to use Javascript (of which I have no idea) to control these functions. Thus the code for the anchors might read:
Code:
< a rel="previous" class="previous " id="XXXXXXXXX_previous">« Previous</a>
< a rel="next" class="next " id="XXXXXXXXXXX_next">Next »</a>
 
Last edited by a moderator:

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top