öğlen saatin 12den sonra 13-14 şeklinde gitmesi için ne yapılabilir.
Declare Function SetTimer Lib "user32" (ByVal hwnd As Long, _
ByVal nIDEvent As Long, _
ByVal uElapse As Long, _
ByVal lpTimerFunc As Long) As Long
Declare Function KillTimer Lib "user32" (ByVal hwnd As Long, _
ByVal nIDEvent As Long) As Long
Public ID As Long
Sub Aut
pen()
Range("A1") = Empty
Call StartIt
End Sub
Sub Auto_Close()
Call StopIt
End Sub
Sub StartIt()
ID = SetTimer(0, 0, 1000, AddressOf RunMe)
End Sub
Sub StopIt()
RetVal = KillTimer(0, ID)
End Sub
Function RunMe(ByVal hwnd As Long, ByVal uMsg As Long, _
ByVal idEvent As Long, _
ByVal dwTime As Long) As Long
On Error Resume Next
ThisWorkbook.Sheets("Sayfa1").Range("A1") = Format(Now, "hh:mm:ss")
End Function
Declare Function SetTimer Lib "user32" (ByVal hwnd As Long, _
ByVal nIDEvent As Long, _
ByVal uElapse As Long, _
ByVal lpTimerFunc As Long) As Long
Declare Function KillTimer Lib "user32" (ByVal hwnd As Long, _
ByVal nIDEvent As Long) As Long
Public ID As Long
Sub Aut
Range("A1") = Empty
Call StartIt
End Sub
Sub Auto_Close()
Call StopIt
End Sub
Sub StartIt()
ID = SetTimer(0, 0, 1000, AddressOf RunMe)
End Sub
Sub StopIt()
RetVal = KillTimer(0, ID)
End Sub
Function RunMe(ByVal hwnd As Long, ByVal uMsg As Long, _
ByVal idEvent As Long, _
ByVal dwTime As Long) As Long
On Error Resume Next
ThisWorkbook.Sheets("Sayfa1").Range("A1") = Format(Now, "hh:mm:ss")
End Function