'Delay Time Public Function MyDoEvents(Optional ByVal dwMilliseconds As Long = 1) MyDoEvents = DoEvents() Sleep dwMilliseconds End Function