Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15833

If Now > Time(8, 0, 0) And Now < Time(8, 10, 0) Then

$
0
0
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

Viewing all articles
Browse latest Browse all 15833

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>