Make Excel Speak When a Formula Cell Value Changes
Question details
Make Excel say “Just great” when the value in B6 changes to a value greater than zero.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A VBA event should announce a positive value in B6 after data entry or formula recalculation.
- Observed behavior
- The speech command does not run as expected when data is entered because Worksheet_SelectionChange tracks the selected cell, not changes to a formula result.
Check whether B6 contains a formula or is edited directly, and confirm the worksheet name. Save the workbook as an Excel Macro-Enabled Workbook (.xlsm) and enable macros when prompted.
Use Worksheet_Calculate for a formula in B6
Use this event when B6 contains a formula whose result changes after its inputs change.
Worksheet_Change does not fire when a formula result changes solely because of recalculation. Worksheet_Calculate fires after recalculation, so the code tracks the previous numeric result to avoid speaking when the result stays the same.
In Excel, right-click the sheet tab containing B6 and select View Code. Place the event code in that worksheet's code window, not in a standard module.
Paste this code into the worksheet module: Private previousB6 As Double Private hasPreviousB6 As Boolean Private Sub Worksheet_Calculate() Dim currentB6 As Variant currentB6 = Me.Range("B6").Value2 If IsError(currentB6) Then hasPreviousB6 = False Exit Sub End If If Not IsNumeric(currentB6) Then hasPreviousB6 = False Exit Sub End If If hasPreviousB6 Then If CDbl(currentB6) <> previousB6 And CDbl(currentB6) > 0 Then Application.Speech.Speak "Just great" End If End If previousB6 = CDbl(currentB6) hasPreviousB6 = True End Sub
Return to the worksheet and press Shift+F9 to calculate it and establish the initial B6 value. Then change a formula input so B6 recalculates to a different positive number.

Use Worksheet_Change for a value entered directly in B6
Use this event when you type or paste a value into B6 rather than relying on a formula result.
Work with Excel spreadsheets in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for common Excel formats, making it easier to move everyday spreadsheet work between suites. It does not fix Excel's VBA speech events; verify macro compatibility before relying on this automation in WPS.

Frequently Asked Questions
Why does Worksheet_SelectionChange check B7 after I enter a value in B6?
Worksheet_SelectionChange receives the newly selected range as Target. If Enter moves the selection from B6 to B7, Target refers to B7, not the edited cell. Use Worksheet_Change for direct edits or Worksheet_Calculate for formula results.
Why doesn't Worksheet_Change detect my formula result?
Worksheet_Change responds to cell edits, not changes caused solely by recalculation. Put a Worksheet_Calculate procedure in the worksheet's code module to monitor B6's calculated result.
Why is there no speech on the first calculation?
The formula-monitoring code stores the first numeric B6 value as a baseline. Press Shift+F9 once to establish that baseline, then change a formula input so B6 becomes a different positive number.
What should I check if the event does not run?
Confirm that macros are enabled, the code is in the correct worksheet module, and calculation is set appropriately under Formulas > Calculation Options. If events were disabled by another macro, open the VBA Immediate window and run Application.EnableEvents = True.




