LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default Using Msnstockquote from excel VBA

I am able to load a cell in an Excel spreadsheet with something like

=MSNStockQuote("msft","Last Price","US")

However, I would like to load a variable in a VBA module with something like;
curPrice = MSNStockQuote("msft","Last Price","US")
and I get €śVariable Not Defined€ť even though CurPrice is defined.

I also tried unsuccessfully with:
curPrice = MSNStockQuote.Functions.MSNStockQuote("msft", "Last Price", "US")

How do I call the MSNStockQuote function from within a VBA module ?

And is it possible to use this call to return more than one parameter at a
time.

Say I wanted Price and time of day as well. Can I do this with a single
Function call?

Thanks,

Gary

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get the MSNStockQuote function in Excel? arrvin Excel Worksheet Functions 1 February 11th 10 10:39 PM
Msnstockquote tfjr Excel Worksheet Functions 1 July 27th 08 06:46 AM
MSNStockQuote Bighitter Excel Discussion (Misc queries) 0 August 28th 07 06:50 PM
MSNStockQuote ? MSNStockQuotes Excel Worksheet Functions 0 May 10th 06 05:16 PM
Using the MSNStockQuote.function excel 2002 how do excel 2003 pete Excel Discussion (Misc queries) 0 November 30th 05 12:25 AM


All times are GMT +1. The time now is 03:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"