Boa noite!!
Sub RunOnTime()
dTime = Now + TimeValue("00:00:35")
Application.OnTime dTime, "RunOnTime"
If Cells(1, 4).Value <= Cells(6, 2).Value Then
Cells(1, 4).Value = Cells(1, 4).Value + 1
Application.OnTime dTime, "RunOnTime"
Else
Cells(1, 4).Value = 0
Application.OnTime dTime, "RunOnTime"
End If
End Sub
Outras fontes:
http://www.globaliconnect.com/excel/ind ... Itemid=475
att
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 04/12/2013 7:20 pm