I'm not pretty sure about your html so I did a complete example: I guess it depends on how you display your modal. If you have any questions concerning the code, or are getting stuck implementing this on your own site, I would recommend that you post a question in the JavaScript category of SitePoints forums. Could you put your code in a JSFiddle or something? Sub MessageBoxTimer () Dim AckTime As Integer, InfoBox As Object Set InfoBox = CreateObject ("WScript.Shell") 'Set the message box to close after 10 seconds AckTime = 10 Select Case InfoBox.Popup ("Click OK (this window closes automatically after 10 seconds).", _ AckTime, "This is your Message Box", 0) Case 1, -1 Exit Sub End Select End Sub Well also need to make use of the onComplete event that Colorbox fires, to ensure that our content has been loaded. If we had a video livestream of a clock being sent to Mars, what would we see? Skies dry out a little bit more by the afternoon. Can my creature spell be countered if I cast a split second spell after it? (A) When the html page (that contains the modals) loads, the modal Timeout seems to run before the modal is even displayed. Note:Popups cannot be displayed more than once if the page is not reloaded or re-entered. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. If you have Qs to why I have used jQuery in React is because this modal is rendered using bootstrap