Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Click a hyperlink on a webpage using VBA

Status
Not open for further replies.

mamanton

Programmer
Mar 20, 2009
1
AP
Hi,

I am writing a VBA, where I have to surf thought a web page and I need to click a hyperlink on the web page. I can not just navigate to that link, since it’s calling a java script and it’s in a log in area. I have completed the code upto in. The only issue is there is a form called “ME” and with in a table there is a hyper link (SEARCH) that I need to click in the second cell. Below is the HTML of the particular area.


<form name="ME" action="/mera/SearchServlet" method="post">
<input type="hidden" name="SearchAction" value="">
<input type="hidden" name="next" value="">
<TABLE >
<TR>
<TD >
<TABLE >
<TR>
<TD width="1%"><a href=" <IMG height=46 alt="Link - APLL Home" src="/ " width=100 border="0">
</a>
</TD>
<TD vAlign=bottom width="1%">
<DIV align=left><IMG height=31 alt=
src=" " width=131></DIV></TD>
<TD >
<TABLE >
<TR>

<table >
<tr>

<TD >
<IMG src=" "></TD>

<TD >
<SPAN class=topnavSelected>Home</SPAN>

</TD>
<TD >
<IMG src="f"></TD>

<TD >

<A href="javascript:gohere()">

<SPAN class=topnav>SEARCH</SPAN>
</A>

</TD>

I need to click the above SEARCH link. Pls. somebody help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top