control HTML TAB and ELEMENT

mickying

New Member
Joined
Feb 19, 2019
Messages
3
I'm a newbie about controlling HTML with VBA
I need help to select HTML tab named "ITEMS"
please find the code below:

HTML:
<div class="button-tabs"><button tabindex="4" class="button-tabs__tab active" role="tab" aria-selected="true" style="z-index: 4;" type="button">receptacles</button><button tabindex="3" class="button-tabs__tab " role="tab" aria-selected="false" style="z-index: 3;" type="button">transport</button><button tabindex="2" class="button-tabs__tab " role="tab" aria-selected="false" style="z-index: 2;" type="button">items</button><button tabindex="1" class="button-tabs__tab " role="tab" aria-selected="false" style="z-index: 1;" type="button">full transport</button></div>

I need also help to select an HTML expandable element below:

HTML:
<div class="event-header  event-header--despatch event-is-expanded event-expandable" aria-expanded="true" aria-controls="2102870864"><div class="event-header-type">PREDES </div><div class="event-header-title">Despatch closed</div><div class="sc-fznMnq biVOqy"><i class="sc-fzoant hmiovz"><svg xmlns="http://www.w3.org/2000/svg" class="svg-inline--fa fa-map-marker-alt fa-w-12 " role="img" aria-hidden="true" viewBox="0 0 384 512" focusable="false" data-prefix="fas" data-icon="map-marker-alt" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M 172.268 501.67 C 26.97 291.031 0 269.413 0 192 C 0 85.961 85.961 0 192 0 s 192 85.961 192 192 c 0 77.413 -26.97 99.031 -172.268 309.67 c -9.535 13.774 -29.93 13.773 -39.464 0 Z M 192 272 c 44.183 0 80 -35.817 80 -80 s -35.817 -80 -80 -80 s -80 35.817 -80 80 s 35.817 80 80 80 Z" /></svg></i><span title="BHBAHA" id="event-header-location">BHBAHA</span></div><div class="event-header-actions"><div class="action"><i><svg xmlns="http://www.w3.org/2000/svg" class="svg-inline--fa fa-minus-circle fa-w-16 fa-lg " role="img" aria-hidden="true" color="#cdcdcd" viewBox="0 0 512 512" focusable="false" data-prefix="fas" data-icon="minus-circle" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M 256 8 C 119 8 8 119 8 256 s 111 248 248 248 s 248 -111 248 -248 S 393 8 256 8 Z M 124 296 c -6.6 0 -12 -5.4 -12 -12 v -56 c 0 -6.6 5.4 -12 12 -12 h 264 c 6.6 0 12 5.4 12 12 v 56 c 0 6.6 -5.4 12 -12 12 H 124 Z" /></svg></i></div></div><div style="clear: both;"></div></div>
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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