#If VBA7 Then 'VBA7 depuis office 2010
Dim handle As LongPtr '#####
#If Win64 Then 'avec PtrSafe avec LongPtr
Private Declare PtrSafe Function SetTimer Lib "User32" (ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As LongPtr) As LongPtr
Private Declare PtrSafe Function KillTimer Lib "User32" (ByVal hwnd As Long, ByVal nIDEvent As Long) As LongPtr
#Else 'sans PtrSafe avec LongPtr
Private Declare Function SetTimer Lib "User32" (ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As LongPtr) As LongPtr
Private Declare Function KillTimer Lib "User32" (ByVal hwnd As Long, ByVal nIDEvent As Long) As LongPtr
#End If
#Else '< VBA7 donc 32 As Long
Dim handle As Long '#####
Private Declare Function SetTimer Lib "User32" (ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long) As Long
Private Declare Function KillTimer Lib "User32" (ByVal hwnd As Long, ByVal nIDEvent As Long) As Long
#End If