VBA Navigation

PGD15

Board Regular
Joined
Aug 5, 2016
Messages
132
Hi People,

I've got some VBA code where i log into a website and navigate to a webpage however, i then need to click a tab on that webpage to see the information i want to extract (the URL is different each time as its includes the date and time) therefore I need to use VBA to click on the tab.

However I cannot see an element name, class name, tag name or ID. (im not brillant with VBA so probably missing it)

Below is the code (didnt use code tags or it will imitate the webpage). I want to use the sales tab....

can someone please help me
    • href="#operationalOffices">Operational Offices
      href="#overview">Sales
      href="#productGroups">Product Groups
      href="#engineers">Originators
      href="#originatingRegions">Originating Regions
 
Last edited by a moderator:

Some videos you may like

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

PGD15

Board Regular
Joined
Aug 5, 2016
Messages
132
before anyone asks, these are all the tabs on the webpage, and this is all the information in HTML code for these tabs. cant see any class= etc so i cant figure out how to click on it.
 

PGD15

Board Regular
Joined
Aug 5, 2016
Messages
132
I FOUND the ID!! id is "overview" though i still cannot get the code to click on this element.

Can someone still help me write this piece, you will have my eternal gratefulness.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,886
Messages
5,598,660
Members
414,252
Latest member
Tejeci

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
Top