Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default VBA Click a link

Should work, but hard to tell why it doesn't without seeing the page you're
working on.

Tim

"GTVT06" wrote in message
...
Hello,
I'm trying to click a link inside of a frame in Internet Explorer. For
some reason my code below doesn't click it. The Debug.Print recognizes
the link but the link.Click isn't working for some reason.
This is my 1st time trying to click on a link inside of a frame so
maybe it's done different from how I'm trying?

For x = 0 To IE.Document.frames.Length - 1
Set f = IE.Document.frames(x)
For Each link In f.Document.Links
If link.innerText = "Download" Then
link.Focus
link.Click
Do While IE.Busy And Not IE.readyState = 4:
Loop
Exit For
End If
Debug.Print "Frame " & x & ": " & link.innerText
Next link
Next x



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Click on cell link to another worksheet in same workbook JOE Excel Discussion (Misc queries) 1 June 8th 09 03:55 PM
Double Click Cell with link should take you directly to source Sarah Excel Discussion (Misc queries) 1 November 28th 07 10:39 PM
Click on a word and have it link to another page Courtneyf04 Excel Discussion (Misc queries) 2 October 17th 07 12:29 AM
OK, so I can't click on a link in IE Kremti Excel Programming 0 April 7th 05 04:06 PM
Excel: How do I set up a cell to click it to link a database? jp@nes Excel Discussion (Misc queries) 1 March 18th 05 07:24 PM


All times are GMT +1. The time now is 09:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"