I am trying to let a cell move on the screen every 0.9 seconds to 0.3seconds.
My code below only works every second for ms > 580 and in an extreme speed (every 0,01s?) for ms < 570.
Is something wrong with my speed calculation?
Option Explicit
Sub Gog()
Dim ra As Range
Dim ms As Long
ms = 580
Set ra = Cells.Find(What:="GO", LookIn:=xlValues, LookAt _
:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False)
ra.Offset(-1, 0).Value = "GO"
ra.clearcontents
Application.OnTime (Now + (ms * 0.00000001)), "Gog"
End Sub