Ratan Bhushan
Member
Hi Team
I have a URL:
http://intranet.dell.com/marketing/...nts/288896/ReqID-288896 GOIR--31230 EMEA.xlsx
I am navigating this URL and i am given an option to click on OPEN or CANCEL.
I have tried many ways to open the file but I am not able to do so.. sendkeys not working.
Please advise me how to achieve this task as I am stucked here
I have a URL:
http://intranet.dell.com/marketing/...nts/288896/ReqID-288896 GOIR--31230 EMEA.xlsx
I am navigating this URL and i am given an option to click on OPEN or CANCEL.
I have tried many ways to open the file but I am not able to do so.. sendkeys not working.
Please advise me how to achieve this task as I am stucked here
Code:
Set internetdata = ie.document
Set internetlink = internetdata.getElementsByTagName("a")
aa = 1
For rr = doc.getElementsByTagName("a").Length - 1 To 0 Step -1
If LCase(Right(doc.getElementsByTagName("a").Item(rr).href, 4)) = "xlsx" Then
' ws4.Cells(aa, 1) = internetinnerlink.href
doc.getElementsByTagName("a").Item(rr).Click
SendKeys "{TAB}"
SendKeys "{ENTER}"
'ie.navigate doc.getElementsByTagName("a").Item(rr).href
Application.Wait Now + TimeValue("00:00:05")
Call Busy
'SendKeys "%{O}"
Application.Wait Now + TimeValue("00:00:02")
Exit For
aa = aa + 1
End If
Next rr