Hi,
Need web query in Excel for the below mentioned website.
http://www.nseindia.com/live_market/...tock_watch.htm
When executed with excel web query throws error
Thanks
Sathish
CSV Download.xlsm
Hi,
Need web query in Excel for the below mentioned website.
http://www.nseindia.com/live_market/...tock_watch.htm
When executed with excel web query throws error
Thanks
Sathish
CSV Download.xlsm
I have corrected few errors, but unlikely to help you further as the site requires password ad user name.
You need to tick the box Microsoft HTML object Library in the tools-reference- before you run the code.
![]()
Please Login or Register to view this content.
Hi,
Thanks for your reply.
Need to mention to add the "Microsoft Internet Controls" Library in the tools-reference.
As you mentioned it stuck at username and password.
Forget to mention the website haven't use username and password.
http://www.nseindia.com/live_market/dynaContent/live_watch/equities_stock_watch.htm"
Any Insights
Sathish
Assuming you want to get the table as displayed on the screen, then use the code below.
There's no way to just download the CSV from the document response as it is generated from a JSON object (as well as the table on the screen), so doing a simple webscrape won't work.
You have to get and process the json object, which is exactly what the code below does.
I advice you to paste this in an empty workbook.
Only reference you need to set is to Microsoft Script Control 1.0
as you know, noone gets paid on this site, so I'd appreciate it if you'd press the * below if this helps.![]()
Please Login or Register to view this content.
Enjoy!
Last edited by JasperD; 07-04-2015 at 10:16 AM. Reason: ps - many thanks for Kyle123 on this forum to teach me how to do this
Please click the * below if this helps
Hi,
It Works , Thanks a lot.
I did (*) as you required.
Sathish
![]()
Glad to hear.
Thanks for the rep.
Please mark this thread as solved.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks