by nerobot » Fri Jul 09, 2010 2:49 pm
Hi,
I'm trying to write something into excel VBA that will close all bets when the time (the time before the market begins, as shown on BA) gets to zero. To do this I've created a double value to store the time. This works fine while the time shown is positive, but when the time is negative, the program crashes.
My question is: How can I represent negative time in VBA that will allow me to perform simple calculations and comparisons.
Regards,
Steven