Following the link of href in a href = "........ /a from vba

Dear User
I use the html object library from excel and I want to follow a link to another page.
The HTML code for the link is
<td>
<a
href="/en/ais/index/eta/all/port:1/portname:PIRAEUS"
title="Expected Arrivals">63</a>
</td>
I have isolated the above in an object htmltabcell.Cells(ItemNo) and I would expect the  htmltabcell.Cells(ItemNo).Click to follow the link , but it does not do anything.
What I have found in the forums is that the only way to follow the link is to use ie.navigate thehrefcontent. which means that I have to isolate the href string by programming. I would think the click method would be more contained .
Please verify if the click method is really not usable in this case. 

Hi,
you pass the value as a parameter to the request path (href attribute value).
eg.
<a href="http://website.com/en/ais/search.aspx?An=63">63</a>
however...
the common design pattern is to use a form.
<form action="search.aspx" method="get">
<input type="text" name="search"/><input type="submit" value="search"/>
</form>
.....hyperlinks are commonly used or navigation purposes eg. <a href="websitepage">open page</a> or <a href="#id">top of page</a>
If possible please include a link to your website or mashup with your questions.
A quick way to build your web pages is to use templates or design patterns (commonly used markup and script) that you can copy from working websites.
The free IDE (Integrated Development Environment) for web development
Webmatrix includes template projects and code auto-completion.
Rob^_^

Similar Messages

Maybe you are looking for