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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
if the code/file is identical then the system has changed
 
Upvote 0

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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