Microsoft KB Archive/69947

OnTime Macro Doesn’t Execute Unless Word for Windows Has Focus

PSS ID Number: Q69947 Article last modified on 02-16-1996

1.x 2.x 6.00

WINDOWS

= SUMMARY =

The OnTime command used in Word for Windows will not execute the specified macro until Word for Windows is given the focus.

= MORE INFORMATION =

The OnTime command in Word for Windows sets up a background timer that runs a specified macro at a specified time. The syntax for using the OnTime command is as follows

OnTime When$, Name$, [Tolerance]

where Name$ is the name of the macro to be run at the time specified by When$. If Tolerance is omitted or set to zero, the macro will run no matter how many seconds elapse before Word is idle and available to run the macro.

However, a Word for Windows macro will not execute this command if Word does not have the focus. It is not possible to use this command to run something if Word does not have the focus when the time to run the macro comes up.

= STATUS =

Microsoft has confirmed this to be a problem in Word for Windows. We are researching this problem and will post new information here as it becomes available.

= REFERENCES =

“Microsoft Word for Windows and OS/2 Technical Reference,” pages 230, 231.

Kbcategory: kbusage kbmacro KBSubcategory: Additional reference words: 1.0 1.1 1.1a 1.x 2.0 2.00 winword2 word6 winword 6.00 6.00a 6.00c ============================================================================= Copyright Microsoft Corporation 1996.