You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Equation Editor in Word 365, VBA timer events unexpectedly suspend their execution when the cursor is positioned at the very beginning of an inline math zone (immediately after entering the math zone).
The timer events resume normal execution when either:
This behavior does not occur with display math zones, only inline math zones.
Steps to Reproduce
Create a Word document with an inline math expression (e.g., $\sqrt{x+5}$)
Add a VBA timer that runs periodic events (example code below)
Use the Immediate Window (Ctrl+G) or other means to monitor the timer
Run the VBA code to start the timer
Position the cursor at different locations:
Just before the math zone (timer runs normally)
At the very beginning of the math zone; editor visible & in front of expression (timer suspends)
Further inside the math zone (timer resumes)
Outside the math zone (timer runs normally)
Example Code
DimlnCounterAsLongDimblnEnableCounterAsBooleanDimdtNextTimeAsDateConstINTERVAL_SECONDSAsDouble=0.1' 1/10th of a secondSubstartCounting()blnEnableCounter=TruelnCounter=0countEndSubSubstopCounting()blnEnableCounter=FalseEndSubSubcount()IfblnEnableCounter=TrueThenlnCounter=lnCounter+1Debug.PrintlnCounter' Schedule the next countdtNextTime=Now+(INTERVAL_SECONDS/86400)' Convert seconds to daysApplication.OnTimeWhen:=dtNextTime,Name:="count"EndIfEndSub
Tested Version Information
Windows OS
OS Version:
-- OS Name: Microsoft Windows 11 Enterprise
-- Version: 10.0.22621 Build 22621
-- Locale: United States
Microsoft Word Version:
-- Microsoft 365 Apps for enterprise
-- Version 2410 (Build 18129.20158 Click-to-Run) Current Channel
The text was updated successfully, but these errors were encountered:
Description
When using the Equation Editor in Word 365, VBA timer events unexpectedly suspend their execution when the cursor is positioned at the very beginning of an inline math zone (immediately after entering the math zone).
The timer events resume normal execution when either:
A video demo of this behavior is available at: Video: VBA script gets suspended when the input cursor is at the beginning of an inline OMath expression (2 minutes)
This behavior does not occur with display math zones, only inline math zones.
Steps to Reproduce
Example Code
Tested Version Information
Windows OS
OS Version:
-- OS Name: Microsoft Windows 11 Enterprise
-- Version: 10.0.22621 Build 22621
-- Locale: United States
Microsoft Word Version:
-- Microsoft 365 Apps for enterprise
-- Version 2410 (Build 18129.20158 Click-to-Run) Current Channel
The text was updated successfully, but these errors were encountered: