Private Sub Timer()
' function to disable MsgBox after determined time
Dim AckTime As Integer, MsgBox As Object
Set MsgBox = CreateObject("WScript.Shell")
'Set the message box to close after 10 seconds
AckTime = 10
Select Case MsgBox.Popup("Now running - SortOverview" & vbCrLf & _
"(this window closes automatically after 10 seconds).", _
AckTime, "This is your Message Box", 0)
Case 1, -1
Exit Sub
End Select
End Sub