Hello, I have a pretty big file to run and attempting to have a "please wait" pop up windows whenever the sheet recalculate. However, the code I pasted below does not seem to work. When I see "Calculating ..4 processors" in the bottom right of the page, the pop up window and worst the code is not executing.
Is there something I did wrong?
Thanks in advance for your help!
------------------------------------------
Private Sub Worksheet_Calculate()
UserForm1.Show False
If Not Application.CalculationState = xlDone Then
DoEvents
End If
UserForm1.Hide
Application.Calculation = xlCalculationManual
Application.DisplayAlerts = False
End Sub
Is there something I did wrong?
Thanks in advance for your help!
------------------------------------------
Private Sub Worksheet_Calculate()
UserForm1.Show False
If Not Application.CalculationState = xlDone Then
DoEvents
End If
UserForm1.Hide
Application.Calculation = xlCalculationManual
Application.DisplayAlerts = False
End Sub