Results 1 to 2 of 2

Updating excel range with dynamic price data

Threaded View

Matt1234au Updating excel range with... 05-06-2009, 06:14 AM
antoka05 Re: Updating excel range with... 05-06-2009, 09:13 AM
  1. #1
    Registered User
    Join Date
    12-03-2008
    Location
    MELBOURNE
    Posts
    5

    Smile Updating excel range with dynamic price data

    Hi

    I have a function that gets me the last bid price of a stock and displays it in a single worksheet cell. It's inside some timer code so it gets the price each second.

    But what if I want to show the last 10 bid prices in
    the range("a1:a10")
    , and when the 11th came in all the values would move up a row, so I see just the last 10.

    I was thinking something like the following - but obviously I can't get it working :=(

    m_BidPrice = myArray(i) 'put the bid into the array
    i = i+1 
    If i > 10 then somehow move all the values up 1 in myArray()
    select the sheet
    range("a1:a10")=myArray
    Any suggestions would be great - thanks
    Last edited by Matt1234au; 05-06-2009 at 11:33 PM.

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