ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Launch IE and scrap data from the web site (https://www.excelbanter.com/excel-programming/426432-launch-ie-scrap-data-web-site.html)

omsoft

Launch IE and scrap data from the web site
 
I want to launch IE from Excel and then go to a specific link, get a bunch of
data and save it as an Excel or CSV file.
I have the code below. But the site has login info. Does someone know how I
supply the login info? Thanks much.

Set ieApp = CreateObject("InternetExplorer.application")
sUrl1 = "https://www.yahoo.com"
If ieApp Is Nothing Then
MsgBox ("Could not launch Internet Explorer. The process will now
exit.")
Exit Function
End If
ieApp.Visible = True
ieApp.navigate sUrl1
Do
DoEvents
Loop While ieApp.busy


ryguy7272

Launch IE and scrap data from the web site
 
IO don't see any login box there, or input box, or anything. Can you provide
the actual link and a little more information about what you want to do?

Thanks,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"omsoft" wrote:

I want to launch IE from Excel and then go to a specific link, get a bunch of
data and save it as an Excel or CSV file.
I have the code below. But the site has login info. Does someone know how I
supply the login info? Thanks much.

Set ieApp = CreateObject("InternetExplorer.application")
sUrl1 = "https://www.yahoo.com"
If ieApp Is Nothing Then
MsgBox ("Could not launch Internet Explorer. The process will now
exit.")
Exit Function
End If
ieApp.Visible = True
ieApp.navigate sUrl1
Do
DoEvents
Loop While ieApp.busy



All times are GMT +1. The time now is 05:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com