Trying to get excel to open and check the time then run some stuff
If Now > Time(8, 0, 0) And Now < Time(8, 10, 0) Then 'Days
ThisWorkbook.Worksheets("Home").Unprotect Password:="123"
ActiveWorkbook.Unprotect "123"
ThisWorkbook.Worksheets("Home").Range("D3:D7").Locked = True
End If
but its running all the time, now do i get to just run in the set times?
cheers in advance
If Now > Time(8, 0, 0) And Now < Time(8, 10, 0) Then 'Days
ThisWorkbook.Worksheets("Home").Unprotect Password:="123"
ActiveWorkbook.Unprotect "123"
ThisWorkbook.Worksheets("Home").Range("D3:D7").Locked = True
End If
but its running all the time, now do i get to just run in the set times?
cheers in advance