I have an app that uses Windows timer for gathering data. It uses the pop timer code in a macro that I can start at will. I have looked for a way to use OnTime Method to automatically stop the macro after a period of time has expired... but to no avail. I can start my macros at certain time of day, etc., but I have found nothing that sets a timer and then does some action (e.g. killtimer) after some duration of time has elapsed. I need to limit the data collection to 960 cells. This equates to a 4 hour trend @ 15 second intervals.
I have found some code that uses eventprocedure and ontime method to close a workbook after some definable period of time.
This raises the question, why could I not use something similar to this to stop collecting data e.g. killtimer to stop my macro?? Anyone have some idea which direction I should take on this?
Thanks again for the very fine help I have experienced on this forum. One of these days I hope to know enough to be a resource to someone else as you all have been to me.![]()
Bookmarks