Revol82 wrote:Ty, true, wanst thinking
If Sheet3.Range("D2").Value = "00:30:00"
How can i put this code to work? it doesnt recognize the value 00:30:00
Excel treats time as a numerical value rather than text, you can use ,
If Sheet3.Range("D2").Value =TIMEVALUE("00:30:00")
or even the numerical value for 00:30:00
If Sheet3.Range("D2").Value = 0.0208333333
Might also be worth you using greater than , less than 00:30:00 or even a range of times in your coding as it's easy to miss a set time slot, only need a slow refresh for a set time to be missed