Message Box to Notify of Update

Banker1

Active Member
Joined
Mar 10, 2005
Messages
463
I have a workbook that takes a decent amount of time to recalculate based on a series of very complex formulas. I'd like to add a message box triggered by a worksheet_change event (already written) which pops a message box noting the sheet is in the process of updating.

I don't want the user to have to interact with the message box to get the in order to have the macro finish it's cycle.

Any suggestions?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Maybe

Code:
Do While Application.CalculationState <> "Done"
    Application.StatusBar = "Updating"
    DoEvents
Loop
Application.StatusBar = False
 
Upvote 0
No luck... here's the code (inc. your suggestion)

Code:
Private Sub Worksheet_Change(ByVal Target As Range)

Do While Application.CalculationState <> "Done"

Application.StatusBar = "Updating"

Call ChangeEvent1(Target)
Call ChangeEvent2(Target)

Loop

Application.StatusBar = False

End Sub

' Updates dropdown list fiters based on selected product

Private Sub ChangeEvent1(ByVal Target As Range)

If Intersect(Target, Range("Returns_Report_DivisionName_Select")) Is Nothing Then
    Exit Sub
Else
    Range("Returns_Report_MarketingChannel_Select").Value = "All"
    Range("Returns_Report_Keycode").Value = "All"
    Range("Returns_Report_ConversionChannel").Value = "All"
End If

End Sub

'Updates dropdown list filters based on selected product and marketing channel

Private Sub ChangeEvent2(ByVal Target As Range)

If Intersect(Target, Range("Returns_Report_MarketingChannel_Select")) Is Nothing Then
    Exit Sub
Else
    Range("Returns_Report_Keycode").Value = "All"
    Range("Returns_Report_ConversionChannel").Value = "All"
End If

End Sub
 
Upvote 0
You can't do it like that. All of the code has to go in the Worksheet_Change event. You cannot make up your own event procedures.
 
Upvote 0
Interesting... how would I modify the change event to incorporate multiple change scenarios then? Based on my research the only way to get multiple change events to trigger correctly I needed to create a separate event and call it in the main change event.

Hope that makes sense.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
Latest member
Knuddeluff

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