Sub Marche()
t = Now
ActiveSheet.Shapes("cptsec").TextFrame.Characters.Text = WorksheetFunction.Roman(Second(t))
ActiveSheet.Shapes("Groupe 50").Rotation = Second(t) * 6
ActiveSheet.Shapes("cptsec").Rotation = Second(t) / 60
ActiveSheet.Shapes("minutes").Rotation = (Minute(t) + Second(t) / 60) * 6
ActiveSheet.Shapes("heures").Rotation = (Hour(t) Mod 12 + Minute(t) / 60 + Second(t) / 3600) * 30
beep_api IIf(Second(t) Mod 2, 2100, 1800), 5
Arret
t = Format(t + 1 / 86400, "d/m/yy h:m:s")
Application.OnTime t, "Marche"
End Sub