I have a running macro to get live data from a real time data server, how to auto stop the macro from running if cell A10 time value reached/exceed a set value 14:00:00
ty for help
I have a running macro to get live data from a real time data server, how to auto stop the macro from running if cell A10 time value reached/exceed a set value 14:00:00
ty for help
Last edited by bezbid; 06-25-2015 at 10:46 PM.
that's if you want exactly equal to 14![]()
Please Login or Register to view this content.
For bigger or equal use this:
![]()
Please Login or Register to view this content.
Last edited by JoeFoot; 06-25-2015 at 11:09 PM.
Got help? Pls give rep.
If you do R&D learn VBA
how is the code if time is 14:45:00
Thank you joeFoot
the 2nd instruction will stop the macro whenever the time is 14:00:00 or higher so it will work for 14:45:00
OK, how about 13:35:00, how would your 2nd code be
can the first code be use like this,
thank you![]()
Please Login or Register to view this content.
Last edited by bezbid; 06-25-2015 at 11:24 PM.
the code only checks for the status of the first 2 digits (in this case 14)
If you want it to stop after 13:35:00 you would need to introduce also a condition to check the 4 and 5 value of the string:
![]()
Please Login or Register to view this content.
Hi bezdid,
Here's one way you could do it:
Regards,![]()
Please Login or Register to view this content.
Robert
____________________________________________
Please ensure you mark your thread as Solved once it is. Click here to see how
If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post
thank you both, JoeFoot & Trebor76
You're welcome. If you could mark the thread as solved it would be appreciated.thank you both, JoeFoot & Trebor76
Thanks,
Robert
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks