Type | Description | |||
Long | A long expression that specifies the time in seconds to automatically close the message box. |
The following VB sample displays a message box, and automatically closes it after 5 seconds:
With MsgBox1 .AutoClose = 5 .Out "This is a short message we want to display for few seconds<br><r>Closing in <b><%sec%></b> seconds.<br><br>", vbInformation, "AutoClose" End With
The message box displays the message "Closing in <%sec%> seconds" that indicates the number of seconds until the message box will be automatically closed.