+ Reply to Thread
Results 1 to 5 of 5

Automatically retrieve Mutual Fund Data

  1. #1
    Forum Contributor
    Join Date
    12-16-2011
    Location
    Portland, OR
    MS-Off Ver
    Excel 2016 Preview
    Posts
    105

    Automatically retrieve Mutual Fund Data

    Hello!

    The goal here is to create a macro that will retrieve mutual fund info. Not the real-time quote but data about the mutual fund. Here is the macro that I recorded. The challenge is in being able to set things up such that the user can input up to 10 ticker symbols and grab, specifically, the Max Front End Sales Fee.

    My macro hardcoded the ticker GEGAX.
    How can this be set up such that user can load tickers into range A5:A14?



    Please Login or Register  to view this content.

    The code below wonderfully extract live quotes. And if the ticker symbol is bogus, this returns "???'" All good.
    I've been trying to modify this code to retrieve the Max Fee but it's not going so well.


    Please Login or Register  to view this content.
    Last edited by Habanero Time; 01-24-2012 at 09:05 PM.

  2. #2
    Registered User
    Join Date
    01-15-2010
    Location
    VA, USA
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Automatically retrieve Mutual Fund Data

    Honestly a little confused because you had different querytables that pointed to different locations... I used the 1st because that was the only one where I could find a Max 12b fee.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-16-2011
    Location
    Portland, OR
    MS-Off Ver
    Excel 2016 Preview
    Posts
    105

    Re: Automatically retrieve Mutual Fund Data

    vthokie, thanks for this, I'll try this when I get home.
    In response to your question about the code being confused: yes. I found some code and have been trying to massage it myself.

    I will follow up tonight.

  4. #4
    Forum Contributor
    Join Date
    12-16-2011
    Location
    Portland, OR
    MS-Off Ver
    Excel 2016 Preview
    Posts
    105

    Re: Automatically retrieve Mutual Fund Data

    vthokie, your code kinda worked. The code did go through and retrieved the table but not the correct cell.


    Here's code that I've massaged some more and it's retrieving the table, taking the contents of B7 from the Web Query page and placing it Column D on the Stock Page.

    Remaining issue: it's not handling errors well. How can this be adjusted in case a bogus mutual fund ticker is entered? Maybe the code would say "INVALID SYMBOL" instead of crashing.


    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    12-16-2011
    Location
    Portland, OR
    MS-Off Ver
    Excel 2016 Preview
    Posts
    105

    Re: Automatically retrieve Mutual Fund Data

    Still in need of help.

    In Steps 3 and 4

    The data on Web Query Page in range D5:I5 needs to go Stock Symbols in cells F:K on each row. Instead, it's bringing blank cells. I know this because I've had content in those cells and the code wiped out the content.

    The code is doing fine picking A5 on WQP and putting it in Column B on the Stock Symbols page.

    What's missing?


    Please Login or Register  to view this content.
    Last edited by Habanero Time; 01-19-2012 at 09:11 PM.

+ 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