VBA code to click a link in a webpage (Two link with the same name)

ssuresh711

New Member
Joined
Feb 6, 2019
Messages
11
Hello Experts,

Requesting your support. I have been trying this code for more than a week.
I have a webpage when I navigate, I need to click a link "Transcript". The problem is the webpage having two transcript link. But I use the 2nd one.
I tried using SendKeys "{TAB}". Sometime only it is working. Mostly the webpage navigate to different page. Please advise the code to click the below highlighted link
 
Last edited by a moderator:

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
This is the HTML code:

<div id="content">
<h2 class="main">Douglas Hunt</h2>
<div class="tabtree">
<u1 class="tabrow0">
<li class="first one rwo here selected">...</li>
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
<li>
<a title="Transcript" href="https://examplelink.com">
<span>Transcript</Span>
</a>
</li>
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,774
Members
452,353
Latest member
strainu

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