VBA Navigation

PGD15

Board Regular
Joined
Aug 5, 2016
Messages
137
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:

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
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.
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,213,568
Messages
6,114,348
Members
448,570
Latest member
rik81h

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