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: 1
Default Update cell's value without refresh screen?

I am having a hard time with a function that update cell values.

I have a function that get market data from a DLL, and it will updat
the corresponding excel cells.

It works ok, the problem is whenever a cell update, excel refresh th
entire screen, sometime values from inactive worksheet can be see i
that cell has colored background formate. I CANNOT us
application.screenupdate =true/false because of the frequency of marke
update (means this function get called maybe twice every second).
Calculation is set to manual so that should not be the problem?


Here is a snap shot of that function

Private Function UpdateCell(byval R as range, byval v as collection
byval header as string)

application.enableEvents = false

Select Case(header)

case "LAST"
'use to be R.Value = value, but cells seems to be faster
application.Worksheets(Name).Cells(R.row, R.Column).Value = v.Last
case "HIGH"
application.Worksheets(Name).Cells(R.row, R.Column).Value = v.High
case "LOW"
application.Worksheets(Name).Cells(R.row, R.Column).Value = v.Low

application.enableEvents = true

end function

Thanks for your time and any input you have. I really approciate it

--
Message posted from http://www.ExcelForum.com

 
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
Screen Refresh Michael H Excel Discussion (Misc queries) 4 November 8th 05 04:46 PM
refresh van uw screen commando Matthias Excel Programming 1 December 23rd 03 03:35 PM
refresh of screen -- commando matthias Excel Programming 2 December 22nd 03 02:17 PM
Screen refresh problem. Nigel Brown[_2_] Excel Programming 0 September 17th 03 03:21 PM
Screen Refresh after minimize Kent Prokopy[_3_] Excel Programming 0 August 22nd 03 06:34 PM


All times are GMT +1. The time now is 08:03 AM.

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"