I'm doing testing on what needs to appear as "real time data" and statistics on different Sensors. I need to start out easy on this so I have attached a spreadsheet that has a Column E that needs to be refreshed at a particular frequency (in seconds) -- perhaps set up as a simple looping exercise. So when the sheet is open, it will automatically fire off the function to randomly produce new data at the frequency specificed.
Does this work for you? You can change the code in TheSub to whatever you need it to do and change the variable cRunIntervalSeconds to the interval in number of seconds you want it to run. Right now I just set it to calculate the activesheet which will recalc your random functions
Bitsqueezer
Hi,
that can't be done with a function but you can use the "Workbook Open" event to start a timer using the "Application.OnTime" method (see Excel help for further details).
With this you can specify a VBA procedure which updates the wanted cell(s) to the wanted values at the given time and then it only needs to use the Application.OnTime method again to set the next interval (Now() plus 5 seconds).
Of course you would need to save the file as macro enabled file.
Does this work for you? You can change the code in TheSub to whatever you need it to do and change the variable cRunIntervalSeconds to the interval in number of seconds you want it to run. Right now I just set it to calculate the activesheet which will recalc your random functions