Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Macro to save a snapshot of data?

I have a range of 30 cells that are linked to an outside source that is
updating them in 10 second cycles. I also have a cell that counts the
accumulating cycles.

I have a line chart that shows me the cell variation in real time.

I would like to take a sample of the values in those 30 cells once every 10
thousand cycles and save them to another sheet so that I can chart change
trends over the long term.

Doe anyone have an example of how I could do this?

Regards, Dustin



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default Macro to save a snapshot of data?

Assuming that you have code that runs at every update, include a call to:

CycleCheck()

then enter

Sub CycleChecker()
cyclecounter=cyclecounter + 1
if cyclecounter=10000 then
cyclecounter=0
' insert logic to do transfer
end if
end sub

You will need to Dim cyclecounter as long outside the sub to make it static.

This is un-checked code
--
Gary's Student


"DustinS" wrote:

I have a range of 30 cells that are linked to an outside source that is
updating them in 10 second cycles. I also have a cell that counts the
accumulating cycles.

I have a line chart that shows me the cell variation in real time.

I would like to take a sample of the values in those 30 cells once every 10
thousand cycles and save them to another sheet so that I can chart change
trends over the long term.

Doe anyone have an example of how I could do this?

Regards, Dustin




Reply
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
Macro to Save data Paul Rimmer Excel Worksheet Functions 2 April 2nd 09 09:28 PM
Rolling up a snapshot of data by month Mercdoodle Excel Discussion (Misc queries) 1 February 2nd 09 11:16 PM
Save A Worksheet as a Snapshot File Bob Barnes Excel Discussion (Misc queries) 0 May 15th 08 07:31 PM
need a function (not macro with ontime) to record a snapshot of a changing cell Shannon Excel Programming 3 February 2nd 04 06:26 PM
Viewing Snapshot Files with Snapshot Viewer Control on Excel Userform...How? Shuffs Excel Programming 0 September 19th 03 05:09 PM


All times are GMT +1. The time now is 12:25 AM.

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

About Us

"It's about Microsoft Excel"