AJUDA COM CLICAR NO BOTAO AUTOMATICO
coloca dentro de um timer....
Command1_Click
subTempo (30)
Command2_Click
subTempo (30)
Command3_Click
subTempo (30)
Command4_Click
subTempo (30)
Command5_Click
subTempo (30)
Command6_Click
subTempo (30)
Command7_Click
subTempo (30)
Command8_Click
Private Sub subTempo(ByVal IntervaloSegundos As Integer)
Dim Inicial As Long
Dim Final As Long
Inicial = Val(Mid(Format(Now, [Ô]hh:mm:ss[Ô]), 1, 2)) * 60 * 60
Inicial = Inicial + Val(Mid(Format(Now, [Ô]hh:mm:ss[Ô]), 4, 2)) * 60
Inicial = Inicial + Val(Mid(Format(Now, [Ô]hh:mm:ss[Ô]), 7, 2))
Final = Inicial
Do While (Final - Inicial) < IntervaloSegundos
Final = (Val(Mid(Format(Now, [Ô]hh:mm:ss[Ô]), 1, 2))) * 60 * 60
Final = Final + (Val(Mid(Format(Now, [Ô]hh:mm:ss[Ô]), 4, 2))) * 60
Final = Final + Val(Mid(Format(Now, [Ô]hh:mm:ss[Ô]), 7, 2))
Loop
End Sub
Tópico encerrado , respostas não são mais permitidas