Home > Forum Home > Automating Data Analysis Tasks > Automating a web query login to download data | Share |
Forum Topic | Post Reply Login |
Automating A Web Query Login To Download Data | Rate this: (2.8/5 from 16 votes) |
I have a funamental earnings and valuation model spreadsheet that downloads stock data from a number of different websites via certain add-ins. One of the sites that it gets information from is investors.com, which requires a login before downloading stock information (not just price/volume/etc data, I get that easily from Yahoo). Problem is that you have to manually login through a web query each time, and this is the current instructions:
Thanks in advance for any help you can provide! | ||
Posted by kilo94 on |
Replies - Displaying 11 to 20 of 40 | Order Replies By: Most Recent | Chronological | Highest Rated |
Rate this: (3/5 from 1 vote) An alternative (though not very robust) is to use the SendKeys method, whereby you attempt to apply focus to the running application and then use the SendKeys command within VBA to mimic the login. | |
Excel Business Forums Administrator | |
Posted by Excel Helper on |
Rate this: (3/5 from 6 votes) Sorry for the delay, I'm in the military and recent world events put this valuation model (which is key to life after the military, as I'd like to get into stock analyst-type of work) was on the back-burner. Now that I have some time over the next couple of days, I'd like to pick your brain a bit more. The website I'm trying to automate in Excel is www.investors.com specifically the login required in order to execute the web query. Unfortunately I don't really understand which parameters I need to stick in the VBA code to automatically reference the cells holding the login and password. Can you be a bit more descriptive for a newbie like me? I really appreciate it... | |
Posted by kilo94 on |
Rate this: (3/5 from 6 votes) Hi all, I am trying to run a web query using VBA, but not able to pass through the login screen. I am using the following code for the query. I am trying access the website using the URL: [http://www.inkresearch.ca/coReport/coReport.php?ticker=AN] When I access the website thorugh a browser, first I get a login page at [http://www.inkresearch.ca/] Once logged in, I get http://www.inkresearch.ca/myInk.php , where I enter a ticker like 'AP' to go to the desired webpage. Can you please suggest a solution to this problem? Thanks, MG. VBA Code:
| ||
Posted by musicgold on |
Rate this: (3/5 from 6 votes) Any guidance on how to do this one. | |
Posted by DaveMills on |
Rate this: (3/5 from 1 vote) Thanks! | |
Posted by vzny254 on |
Rate this: (3/5 from 1 vote) Thank you!! | |
Posted by vzny254 on |
Rate this: (3/5 from 1 vote) | |
Posted by vzny254 on |
Rate this: (3/5 from 1 vote) I get "a" and "b" for variables for username and pw respectively. from [http://www.bentekenergy.com/Benport/Login.aspx?ReturnUrl=/Benport/DisplayReportNews.aspx%3fLOC%3d1%26ID%3d0%26doc%3dBENTEK_EMF_NukeOutages.pdf&LOC=1&ID=0&doc=BENTEK_EMF_NukeOutages.pdf] I get "Login1$UserName" and "Login1$Password" for variables for username and pw respectively. Neither of those seem to work once. I also tried changing url from Login.aspx to BENportTech.aspx with no luck...... What else could I try to make this work...? I very much appreciate the help! | |
Posted by vzny254 on |
Rate this: (3/5 from 1 vote) | |
Posted by vzny254 on |
Rate this: (3/5 from 1 vote) tempStr = Mid(x, StartPos, Len(x) - StartPos) | |
Posted by vzny254 on |
Back | Displaying page 2 of 5 | Next |
Find relevant Excel templates and add-ins for Automating a web query login to download data in the Excel Business Solutions Directory |