Greetings all,
I posted a few days ago about this problem, with no responses, but I probably wasn't direct enough if my explanation. So I have a working code which sends a signal to a laboratory balance. Then the balance sends back the signal and excel places it into a cell along with a time stamp. The way the program works now is it is initiated by a command button. I'm looking for a way to put the process on a loop so that the command button is automatically clicked every 30 seconds or so. Or just do away with the command button and have the program loop on its own. I've been trying to use Application.OnTime however I'm not exactly sure where in my code to put it. When I put it in the CommandButton1_Click sub, the code seems to want to work (I click the button and it records data, then 30 seconds later it tries to run again but an error message occurs stating "Cannot run the macro ________. The macro may not be available in this workbook or all macros may be turned off." I've been trying alot of different things with no luck. Any help would be greatly appreciated. The first, short section here is under Microsoft Excel Objects/Sheet 1 (Results), and the second portion is under Forms/UserForm1.
----------------------------------------------------------------
![]()
Please Login or Register to view this content.
Bookmarks