April 21st, 2009, 12:10 pm
You want to look at the "AT" commandBe also aware that Excel VBA has "events".Hint: when doing things with the Windows command line spaces can cause an issue unless you use " to mark the text as literal.You can set a piece of code to be called hours or days hence, or when a sheet is loaded.Or better, make the routine wake up every few minutes to see if there is data there, which will protect you against the data arriving at 9:01, and thus being missed by an over precise reading function.OnTimeis your friend here.Also, you can use the Shellcommand in VBA, which will start a program, and you can comibne this with timer and sheet loading events.A more industrial-strength approach is to remember that MS provides database drivers that let you write code in VBA, C++, C#, etc that will treat an Excel file as a database, so that you can write code that does not have to rely upon Excel being fired up.
Last edited by
DominicConnor on April 20th, 2009, 10:00 pm, edited 1 time in total.