Question : How do I programmatically click the specific link using Internetexplorer.application object

I'm trying to click the 'older posts' link programmatically:

http://www.facebook.com/search/?flt=1&q=%223D%20Printing%22&gl=1&lo=en_US#!/search/?flt=1&q=%22computer%22&gl=1&lo=en_US

the link is on the bottom of the page. Does anyone know how?

Answer : How do I programmatically click the specific link using Internetexplorer.application object

Hi
You can try code as follows:
oie = CreateObject("InternetExplorer.Application")
oie.Navigate2("www.facebook.com")
loDocument = oie.Document
FOR LinkNo = 1 TO lDocument.links.length
   CurrentLink = lDocument.links(LinkNo)
   IF "OLDER POSTS" $ UPPER(CurrentLink.innerText)
       CurrentLink.Click()
   endif
ENDFOR

Random Solutions  
 
programming4us programming4us