XL97: SendKeys Slower When Compared to MS Excel 7.0

ID: Q157096


The information in this article applies to:
  • Microsoft Excel 97 for Windows


SYMPTOMS

When you run a Visual Basic for Applications macro that uses the SendKeys statement in Microsoft Excel 97, the macro may be slower compared to earlier versions of Microsoft Excel.


WORKAROUND

To work around this problem, use the SendKeys method for the Application object instead of the SendKeys statement. In Microsoft Excel 97, the SendKeys method for the Application object executes more quickly than the Visual Basic SendKeys statement.

For example, if you use the following SendKeys command:


   SendKeys "^X" 
replace it with the following command:

   Application.SendKeys "^X" 


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

Additional query words: XL97 send keys key

Keywords : kbprg kbdta kbdtacode xlvbainfo KbVBA
Version : WINDOWS:97
Platform : WINDOWS
Issue type :


Last Reviewed: November 4, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.