i would appreciate if anyone can see any possible cases where this routine could fail or error
or other possible improvements

the idea is to limit the maximum number if iterations (user set maxe) per hour, the test below i have changed to minutes, for testing purposes,
vb Code:
  1. Sub test()
  2. Dim strtime As Date, e As Long, maxe As Long
  3. strtime = Now
  4. maxe = 850
  5.         For e = 1 To 100000
  6.  
  7.                             If e Mod maxe = 1 And Not e = 1 Then
  8. '                                .Disconnect
  9.                                 Do Until DateDiff("s", strtime, Now) > (e \ maxe) * 60
  10.                                     DoEvents
  11.                                     Sleep 3000
  12.                                 Loop
  13. '                                .Connect
  14.                                 Debug.Print Now
  15.                             End If
  16.         Next
  17.  
  18. End Sub
within the application, this is actually in a do loop, e = e +1, with unknown maximum, but i would expect to always be less than 100000
the computer is unlikely to be used for other purposes while this routine is running