+ Reply to Thread
Results 1 to 3 of 3

Data Query - How to Change Drop down Selection from Website

  1. #1
    Registered User
    Join Date
    10-11-2012
    Location
    united states
    MS-Off Ver
    Excel 2003
    Posts
    7

    Data Query - How to Change Drop down Selection from Website

    Hello,

    I am trying to gather stock data information. When it comes to stock prices, websites always show them in batches of 30 days, 60 days, or some number not big enough. The problem is that if you want to 5 years of data, you will need to write data queries for each of the pages: here is an example of writing 30 queries to capture 5 years of data (30 days per page > 6 pages for one year > 30 pages for 5 years).

    I was fortunate to find that Nasdaq's site allows you to view up to 10 years of data all on a single page (http://www.nasdaq.com/symbol/wmt/historical)! This is great, however when you make the selection for 10 years (or 5 years or any other selection), the URL of the page does not change which means I don't know how to factor this change into the VBA. Is there any way for the the VBA to sense the spinner/selection tool, and choose the appropriate selection, and then create the query off of the table that loads?

    Thanks so much for your help guys
    Last edited by mattjac1; 06-13-2013 at 05:43 PM.

  2. #2
    Registered User
    Join Date
    10-11-2012
    Location
    united states
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Data Query - How to Change Drop down Selection from Website

    Are there any ideas out there? Sorry for the bump - if I don't hear back anything, I'll try another forum. And thank you again

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Data Query - How to Change Drop down Selection from Website

    There's no way the code you have can be used to do what you want.

    You'll either need to automate IE or use some other method, perhaps XMLHTTP.
    If posting code please use code tags, see here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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