I use a webservice function to get commodity prices in an Excel spreadsheet. I have VBA code that references the values of the cells in which these prices are stored. I would like to be able to get this value stored in my macro without having to use the function in a cell. An example of my webservice function:
=WEBSERVICE("http://finance.yahoo.com/d/quotes.csv?s=CLF16.nym&f=l1")
My macro takes the current month and year to build the URL (the ticker codes for futures vary by date, so CLF16.nym is crude oil price for January 2016).
Is it possible to get this commodity price as a value in VBA without using the webservice function?