Excel: SEND.KEYS() Not Executing Correct Menu CommandsLast reviewed: November 2, 1994Article ID: Q67578 |
The information in this article applies to:
SUMMARYWhen a SEND.KEYS() function in a Microsoft Excel macro is executing an incorrect menu command, check the case of the letters that are being sent by the function. If the letter for the desired menu is capitalized, the SEND.KEYS() function will execute it as a SHIFT+<the menu letter> keystroke, resulting in the wrong menu option.
MORE INFORMATIONWhen using a line such as
=SEND.KEYS("%(F)(C)")in a Microsoft Excel macro to execute the Close command from the File menu, even though a SHIFT keystroke is not entered in the function, the function will still execute SHIFT+ALT+File, generating the File Close All command. Because the Close and the Close All commands can be called by the letter "c", the File Close All command will be executed rather than the desired File Close command. (Note: this is also true for version 5.0 macro sheets, but not modules.)
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |