+ Reply to Thread
Results 1 to 8 of 8

Rate Retrieval Tool Broke?

  1. #1
    Forum Contributor
    Join Date
    12-30-2009
    Location
    US
    MS-Off Ver
    Excel 2003, 2010, 2016, 2019, & Office 365
    Posts
    194

    Rate Retrieval Tool Broke?

    Hi,

    I have this handy tool that will go to a website, fetch some interest rate and throw it into excel. It has worked great for a couple of years; however, as of yesterday the tool now errors with "Permission to Use Object Denied". I have no clue what the issue is.... It's a VBA code to just fetch a table from the site. Can someone please help me? Attached is the template.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Rate Retrieval Tool Broke?

    have you tried to visit the link its trying to get the data from?

    https://apps.newyorkfed.org/markets/autorates/sofr

    Has that table changed?

    Also google that error, seems that it may be a pc/workstation permissions error..

    https://stackoverflow.com/questions/...-to-use-object

  3. #3
    Forum Contributor
    Join Date
    12-30-2009
    Location
    US
    MS-Off Ver
    Excel 2003, 2010, 2016, 2019, & Office 365
    Posts
    194

    Re: Rate Retrieval Tool Broke?

    I did, the site works and also, I have tried using the macro in some different PC environments, all still show the same error. This does not make sense because nothing has changed so I am having a hard time troubleshooting... Any other help?

    The site seems to redirect to the URL: https://www.newyorkfed.org/markets/reference-rates/sofr but I updated that link in a test... same issue

  4. #4
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Rate Retrieval Tool Broke?

    When debugging, the error is occuring at this portion of the code:

    Please Login or Register  to view this content.
    I changed this line and it ran without the error, but nothing was populated

    'Set xmlHTTPReq = CreateObject("MSXML2.XMLHTTP")
    Set xmlHTTPReq = CreateObject("MSXML2.ServerXMLHTTP.6.0")

  5. #5
    Forum Contributor
    Join Date
    12-30-2009
    Location
    US
    MS-Off Ver
    Excel 2003, 2010, 2016, 2019, & Office 365
    Posts
    194

    Re: Rate Retrieval Tool Broke?

    Thanks... this is super weird because I have other tabs in my original file that do the same thing and all work just fine (attached). What would change about the SOFR rate tab?
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Rate Retrieval Tool Broke?

    Not sure i can be more help, i havent worked with webpages within any of my VBA code, but have developed other code in other languages and thought i would assist where i could.

  7. #7
    Forum Contributor
    Join Date
    12-30-2009
    Location
    US
    MS-Off Ver
    Excel 2003, 2010, 2016, 2019, & Office 365
    Posts
    194

    Re: Rate Retrieval Tool Broke?

    No problem, I appreciate it. I actually think I may have figured it out. The website had a change in how the data is displayed and it is not a typical embedded table in the HTML so it would not show anymore. I have it set to the new path (an XML file) https://markets.newyorkfed.org/read?...:-1&format=xml

    This displays the data I need.

    Thanks again for the help!

  8. #8
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Rate Retrieval Tool Broke?

    Nice, glad you figured it out..

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Currency quote data retrieval and collection for rate forecasting model.
    By tsphillis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2019, 03:52 AM
  2. Formula just broke ?
    By vemix in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-04-2013, 01:48 AM
  3. Foreign exchange rate download tool
    By Steverizer in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-19-2013, 05:48 PM
  4. HELP - I think I broke Exce
    By Mykal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2011, 02:36 AM
  5. I broke my speedsheet.
    By Suomalainen in forum Excel General
    Replies: 1
    Last Post: 12-17-2010, 08:43 AM
  6. I broke my Excel!!
    By grime in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-24-2006, 01:15 PM
  7. Array Broke - How do I fix it.
    By Linc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-01-2005, 11:07 AM

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