+ Reply to Thread
Results 1 to 5 of 5

Web Query in Excel

  1. #1
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2019
    Posts
    327

    Web Query in Excel

    Hi guys:

    I am trying to create a web-query to open the following link in excel:

    http://www.nseindia.com/live_market/...atch.htm?cat=N

    Can someone help me with it? Its urgent....

    Cheers,
    Regards,
    Navin Agrawal

  2. #2
    Valued Forum Contributor
    Join Date
    03-14-2012
    Location
    Arizona USA
    MS-Off Ver
    Excel 2000/2007
    Posts
    408

    Re: Web Query in Excel

    There is something that stop the normal web data access for this URL.

    There is a workaround though.

    That web page does allow DOWNLOAD as csv file. What I would do is;

    In Firefox or IE, write a short iMacro to access and download the file.
    Then use a VBA macro to open the csv file.

  3. #3
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Web Query in Excel

    I couldn't really follow how Dennis interpreted your original post, but if you really just need to open it, here you go:

    Please Login or Register  to view this content.
    Edit: Dennis' response does speak to 'open IN excel', while I have provided 'open FROM excel'.
    Perhaps it was the Noid who should have avoided me...
    If you are satisfied with my solution click the small star icon on the left. Thanks
    1. Make a copy of your workbook and run the following code on your copy (just in case)
    2. With excel open, press ALT+F11 to open the Visual Basic Editor (VBE). From the "Insert" menu, select "Module".
    3. Paste the code from above into the empty white space. Close the VBE.
    4. From the developer tab, choose "Macros", select the Sub Name, and click "Run".

  4. #4
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2019
    Posts
    327

    Re: Web Query in Excel

    Thanks a lot.....

    Can you help me with a sample excel sheet pls....

    Secondly, I dont need to merely open the page, I want to create a web query using excel so that I can extract data and use it in my file....

    Thanks & Cheers,

  5. #5
    Valued Forum Contributor
    Join Date
    03-14-2012
    Location
    Arizona USA
    MS-Off Ver
    Excel 2000/2007
    Posts
    408

    Re: Web Query in Excel

    To get the full data in a usable form, it should be "Downloaded As CSV". This can be done manually(you browsing and clicking on the buttons). Or it can be done in a semi-automated fashion using iMacros. For IE or Firefox, it is a good add-on. It is free.

    The macro to navigate to the URL and "Downloaded As CSV" is

    iMacro Code:
    Please Login or Register  to view this content.
    Then just open the csv file in excel. This can be done manually or with a macro.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1