Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Help and How-to
Search
Search
 
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

MSN MoneyCentral Stock Quotes help
 
Applies to
Microsoft Excel 2002

You can get refreshable stock quote data in Microsoft Excel 2002 by using the MSN® MoneyCentral™ Stock Quotes add-in to insert the MSNStockQuote function in one or more worksheet cells. The function gives you the flexibility to calculate formulas based on the function's return values so you can easily create your own financial analysis. The add-in provides an interface that makes it easy to use the function, even if you've never worked with functions in formulas before.

The MSN StockQuote function returns either a company's stock price or another piece of stock information you specify, such as the High, Low, Ask, Bid, or Close price. The function can be refreshed to get the latest information.

To insert stock quote data, you can use the MSN MoneyCentral Stock Quotes toolbar, menu commands available on the Data menu, or the smart tag command Insert Stock Quote from MSN MoneyCentral.

ShowRetrieve stock information by inserting the MSNStockQuote function

  1. On the MSN MoneyCentral Stock Quotes toolbar, click Insert Stock Quotes.
  2. In the Symbols or range reference box, type the symbols—or the cell or range reference that contains the symbols—for which you want stock data. When you type symbols in the box, you can separate multiple entries by commas, spaces, or semicolons. For example, you can type MSFT,AOL,INTC.

    Note  If you're unsure of the symbol for which you want to retrieve stock data, click Find Symbol, which is a link to the MSN MoneyCentral Investor Find Symbol tool.

  3. In the Country/Region list, select the location of the stock market from which you are retrieving quotes.

    Note  From quotes from Great Britain, Last Price, Ask Price, Bid Price, and Previous Close are returned in British pence, while Currency, Earnings Per Share, and Market Capital are returned in British pounds.

  4. In the Properties list, click the properties (for instance, Ask Price for the ask price or Day's High for the day's high price) of the quote you want to retrieve. To select more than one property, press CTRL while clicking each property. If you do not select a property, the last price is returned.
  5. Click Add to add the properties to the Selected list. To add all the properties at once, click Add All.

    Note  To change the order of the properties in the Selected box, click the property or properties you want to move and then click Up or Down.

  6. Select or clear the Include column headers check box to indicate whether or not property labels should be included as headings in the first row of data returned to the worksheet.
  7. Under Destination, click Existing worksheet or New worksheet to specify where you want to return the information.
    • If you click Existing worksheet, then, in the Starting at box, type the reference for the cell that you want to be the upper left cell in the range of values you are returning. For example, if you are returning four values and want the first value to be returned to cell B5, enter B5 in the Starting at box. Keep in mind that if the Include column headers check box is selected, the column headers are returned in the row of your starting cell.
    • If you click New worksheet, the data will be returned to cell A1.
  8. Select the Apply default number formats check box to format returned values in decimal format. Clear this check box to retain current cell formatting.
  9. Click OK.

Notes

  • You can type the MSNStockQuote function directly in a cell, bypassing the Insert Stock Quotes dialog box. See the MSNStockQuote function reference section on this page for more information on the function and for examples.
  • Stock quotes are not automatically updated, even if you retype the function in a cell. You must click Update Quotes on the MSN MoneyCentral Stock Quotes toolbar to refresh values.
  • The MSN StockQuote function is not designed to work on embedded worksheets. You can save an embedded worksheet as an Excel workbook file by selecting the worksheet object and clicking Worksheet Object on the application Edit menu. Then, click Open on the submenu. Once the object is open in Microsoft Excel, save it as a Microsoft Excel Workbook file.

ShowUpdate MSN MoneyCentral Stock Quotes

  • On the MSN MoneyCentral Stock Quotes toolbar, click Update Quotes.

Note  The Update Quotes button is unavailable until updated values are returned to the worksheet, and for five minutes after these values are returned. Values are always delayed by at least 15-20 minutes.

Tip  To make it easy to determine the time or date of the last returned quote, include the Time of Last Sale or Date of Last Sale properties as part of the information you return for quotes.

ShowCancel the update of MSN MoneyCentral Stock Quotes

  • On the MSN MoneyCentral Stock Quotes toolbar, click Cancel Update.

ShowCheck for add-in updates

  1. On the MSN MoneyCentral Stock Quotes toolbar, click Help.
  2. Click Check for Add-In Updates.

    A Web page will appear with information on the latest updates, and you will have the opportunity to download an update if you wish.

ShowCheck the add-in version and data provider information

  1. On the MSN MoneyCentral Stock Quotes toolbar, click Help.

  2. Click About MSN MoneyCentral Stock Quotes.

ShowUninstall the add-in

  1. Double-click the Add/Remove Programs icon in the Windows Control Panel.
  2. Click Microsoft MSN MoneyCentral Stock Quotes Add-In for Excel, and click Remove.
  3. Follow the instructions on the screen.

Note   Clearing the MSNStockQuote.Functions checkbox in the Add-ins dialog box (Tools menu) will not uninstall the program, and may result in errors returned by the function.

ShowGo to the MSN MoneyCentral Web page

  • On the MSN MoneyCentral Stock Quotes toolbar, click More Information about Stocks.

ShowMSNStockQuote function reference

MSNStockQuote retrieves stock data from MSN MoneyCentral.

Syntax

MSNStockQuote(Symbol,Property,CountryCode)

Symbol   is a stock symbol (for example: "MSFT", "AOL", "IBM", "AAPL").

Property   is a piece of information regarding the stock, such as Ask Price or Close Price. This is an optional parameter. If omitted, the default is Last Price. You can either type the indicated property as text, or use a value from 1 to 25 to represent the property you want to return.

Property argument Value returned
1 or "Last" or "Last Price" or "Last Sale" Price of the last trade
2 or "Time" or "Time of Last Sale" or "Last Sale Time" or "Last Time" or "Date" or "Date of Last Sale" or "Last Sale Date" Date/time of the last trade, returned as a serial number, in local time for the New York Stock Exchange
3 or "Size" or "Size Of Last Sale" or "Last Sale Size" or "Last Size" Size of the last trade
4 or "Ask" or "Asking Price" or "Ask Price" Last asking price
5 or "Ask Size" or "Asking Size" Last asking size
6 or "Bid" or "Bidding Price" or "Bid Price" Last bid price
7 or "Bid Size" or "Bidding Size" Last bid size
8 or "Open" or "Opening Price" or "Open Price" Opening price
9 or "Close" or "Closing Price" or "Previous Close" or "Close Price" Last closing price
10 or "High" or "High Price" or "Day High" or "Day's High" High price for the day
11 or "Low" or "Low Price" or "Day Low" or "Day's Low" Low price for the day
12 or "Volume" or "Vol" Volume traded for the day
13 or "Change" or "Chg" Change for the day
14 or "Percent Change" or "% Change" or "%Change" or "% Chg" or "%Chg" Percent change for the day
15 or "Year High" or "52 Week High" or "52 Wk High" 52 week high
16 or "Year Low" or "52 Week Low" or "52 Wk Low" 52 week low
17 or "Market Cap" or "Market Capital" or "Market Cap." Market capital
18 or "Earnings Per Share" or "EPS" Earnings per share
19 or "PE" or "P/E Ratio" or "PE Ratio" PE ratio
20 or "Shares Outstanding" or "Shares Out" or "Shares Out." or "# Shares Out" or "# Shares Out" Number of shares outstanding
21 or "Currency" Currency in which the stock is traded
22 or "Exchange" Exchange on which the stock is traded
23 or "Country" Country in which the stock is traded
24 or "Type" Type of stock traded
25 or "Company Name" Company's name

CountryCode is the two-letter code that represents the country in which the stock is traded (for example: "CA", "GB", "US"). This is an optional parameter. If omitted, the default value is "US". Alternatively, you can enter the country code when you specify the stock symbol (such as, US:MSFT), in which case the CountryCode property is ignored.

Country Code
Australia AU
Canada CA
Germany DE
France FR
Great Britain GB
Italy IT
United States US

Note  For quotes from Great Britain, Last Price, Ask Price, Bid Price, and Previous Close are returned in British pence, while Currency, Earnings Per Share, and Market Capital are returned in British pounds.

Examples

Formula Description (Result)
=MSNStockQuote("MSFT") Last price of the U.S. symbol "MSFT"
=MSNStockQuote("MSFT","Open") Opening price of the U.S. symbol "MSFT"
=MSNStockQuote("MSFT",9) Close price for U.S. symbol "MSFT"

ShowTroubleshooting

ShowI see #VALUE! errors where my stock quotes should be

Check to be sure that:

  • You can connect to MSN MoneyCentral via the Internet.
  • The formula is entered correctly. See the MSNStockQuote function reference section on this page for more information.
  • The add-in is loaded properly, and that the MSNStockQuote.Functions check box is selected in the Add-ins dialog box (Tools menu). If MSNStockQuote.Functions is not listed, click Automation, and then click MSNStockQuote.Functions in the Automation servers available list.

    If you're not sure the add-in is loaded properly, try uninstalling and reinstalling the add-in while you're connected to the Internet. See the section above titled Uninstall the add-in.

  • The add-in is not disabled. Click About Microsoft Excel on the Help menu, then click Disabled Items. If MSN MoneyCentral Stock Quotes Function Add-In is in the list, click it and click Enable.
  • Macros are not disabled. Macros may be disabled if:
    • When you installed the add-in, you cleared the Always trust macros from this source check box, and/or clicked Disable Macros in the Security Warning dialog box. To return to the Security Warning dialog box so you change these settings, quit Excel, start Excel, and attempt to insert a stock quote.
    • The Always trust macros from this source check box is disabled on the Security Warning dialog box. You can change the security setting on the Security Level tab of the Security dialog box (Tools, Macro menu) to medium. See Excel Help for more information.

ShowI see #NAME? errors where my stock quotes should be

  • If you used the Export to Microsoft Excel command in Internet Explorer, the add-in may not be loaded properly. Save your files, quit Excel, open Excel, and open your files again.
  • Check to be sure that the add-in is installed, and that the MSNStockQuote.Functions check box is selected in the Add-ins dialog box (Tools menu). If MSNStockQuote.Functions is not listed, click Automation, and then click MSNStockQuote.Functions in the Automation servers available list.
    • If you're not sure the add-in is loaded properly, try uninstalling and reinstalling the add-in while you're connected to the Internet. See the section above titled Uninstall the add-in.
    • If you're sure the add-in is installed and loaded, click Insert Stock Quotes on the toolbar, click Cancel in the dialog box, and quit Excel. Then, open Excel.
  • Make sure the add-in is enabled by clicking About Microsoft Excel on the Help menu, then clicking Disabled Items. If MSN MoneyCentral Stock Quotes Function Add-In is in the list, click it, and click Enable.

ShowMy stock quote values are not updating when I click Update Quotes

  • The Update Quotes button is not available for five minutes after the last time you update.

  • Values are always delayed by at least 15-20 minutes, so it is possible that the previous values will be returned.

  • If the market is closed (after hours, holidays or weekends) the previous values will be returned.

Tip  To make it easy to determine the time or date of the last returned quote, include the Time of Last Sale or Date of Last Sale properties as part of the information you return for quotes.

ShowThe MSN MoneyCentral Stock Quotes toolbar disappeared

  • On the Data menu, click Stock Quotes from MSN MoneyCentral, and then click MSN MoneyCentral Stock Quotes Toolbar.

ShowThe MSN MoneyCentral Stock Quotes toolbar doesn't work or only has Stop and Refresh buttons

  • Make sure the add-in is installed properly by uninstalling and reinstalling the add-in while you're connected to the Internet. See the section above titled Uninstall the add-in.

  • Make sure the add-in is enabled by clicking About Microsoft Excel on the Help menu, then clicking Disabled Items. If MSN MoneyCentral Stock Quotes UI Add-In is in the list, click it, and click Enable.

ShowThe Update Quotes and Cancel Update buttons are disabled

  • Immediately after an update, both the Update Quotes and Cancel Update buttons are disabled for 5 minutes.

  • If it has been more than five minutes since your last update, make sure the add-in is enabled by clicking About Microsoft Excel on the Help menu, then clicking Disabled Items. If MSN MoneyCentral Stock Quotes Function Add-In is in the list, click it, and click Enable.

  • If it has been more than five minutes since your last update, make sure the add-in is installed properly by uninstalling and reinstalling the add-in while you're connected to the Internet. See the section above titled Uninstall the add-in.

ShowWhen I try to insert stock quotes or open a file with stock quotes I see a Security Warning dialog box

  • Select the Always enable macros from this source check box and then click Enable macros.

  • If the Always enable macros from this source check box is disabled, you can change the security setting on the Security Level tab of the Security dialog box (Tools, Macro menu) to medium. See Excel Help for more information.

ShowI get an error message when I try to update values

  • Make sure you are connected to the Internet and have access to MSN MoneyCentral.

  • Check MSN MoneyCentral to make sure it is available and working correctly. To do this, type the address for MSN MoneyCentral (http://www.moneycentral.msn.com/home.asp ) in your browser.

  • Click Cancel Update, and then click Update Quotes again.

ShowI get a message that says the function that retrieves quotes failed.

  • Make sure macros are enabled for MSNStockQuote.dll. When you install the add-in, you should select the Always trust macros from this source check box, and click Enable Macros in the Security Warning dialog box. If you didn't do this when installing, you can return to the Security Warning dialog box without reinstalling by quitting Excel, starting Excel, and inserting a stock quote.

  • Before you save the workbook that the stock quotes are in, make sure that none of the stock quotes are returning error values such as #VALUE! or #N/A. You can update the quotes by clicking Update Quotes on the toolbar, or clear the cells that are resulting in error values before you save the workbook.

advertisement