what bitness of office do you have at home and office (x32 or x64)?
anyway you have wrong declaration of dwMilliseconds (only long for both x32 and x64).
Longptr only applies to window handle or any pointer.

'arnelgp
#If VBA7 Then
Private Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
#Else
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
#End If