Microsoft KB Archive/69947

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 18:58, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

The information in this article applies to:
- Microsoft Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c

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<math display="inline">, Name</math>, [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.