I have VBA code that reads a temperature device every minute "On the minute", displays the data in Sheet1, and saves the data to an *.csv file. I am using Application.OnTime to run the VBA code each time Seconds = 00.
The problem is, I would like to allow the user to enter a message along with the data (whenever necessary). This can easily be done by them typing a message into a cell, and the VBA code saving the message, along with the data.
But, while the user is in the cell and typing, the Application.OnTime will not execute. If the user takes to long, I will miss data. That's not a problem if it's only two or three minutes. But if the operator walks off before hitting enter, no data will be collected from then on.
Is there an interactive way that doesn't interfere with Application.OnTime? I've tried using a second EXCEL spreadsheet to do the message, but it still interrupts the code in my original Sheet1 (even if I start another instance of Excel)
The problem is, I would like to allow the user to enter a message along with the data (whenever necessary). This can easily be done by them typing a message into a cell, and the VBA code saving the message, along with the data.
But, while the user is in the cell and typing, the Application.OnTime will not execute. If the user takes to long, I will miss data. That's not a problem if it's only two or three minutes. But if the operator walks off before hitting enter, no data will be collected from then on.
Is there an interactive way that doesn't interfere with Application.OnTime? I've tried using a second EXCEL spreadsheet to do the message, but it still interrupts the code in my original Sheet1 (even if I start another instance of Excel)