Times Message Box - Timer stopped working

jfreund

New Member
Joined
Feb 2, 2018
Messages
1
Good afternoon,
I've had a timed message box that we have been using for years in some of our excel files and all of a sudden the timer functionality has stopped working. The yes, no buttons are fine but the timer is not.

Any ideas on why this would stop working and how to fix?

Thank you

Code:
'>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Private Const TM_TEXT As String = "The workbook is about to start a macro to pull " & vbCrLf & _
"transaction detail." & vbCrLf & vbCrLf & _
"If you would like the macro to continue click Yes, else click No." & vbCrLf & vbCrLf & _
"If you do nothing the macro will start automatically in a few seconds."
'>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Private Const TM_TITLE As String = "Data Pull"
Private Const TM_DURATION As Integer = 4 'seconds


Private Sub Workbook_Open()


'-------------------------------------------------------------
'Sub TimedMsgbox()
'-------------------------------------------------------------


Dim WSH As Object


    Set WSH = CreateObject("WScript.Shell")
    Select Case WSH.Popup(TM_TEXT, TM_DURATION, TM_TITLE, vbYesNo)
        Case vbYes


            Application.Run "DataPullWorksheet.xlsm!PullData"
        Case vbNo
            MsgBox "You cancelled the macro!" & vbCrLf & vbCrLf & _
            "If you cancelled the macro on accident please click OK below then press CTRL+SHIFT+R to restart the macro."
        Case -1


            Application.Run "DataPullWorksheet.xlsm!PullData"
        Case Else
    End Select




End Sub
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
if the code/file is identical then the system has changed
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top