XL97: How to Determine the Key Pressed Along with Mouse Button (161903)
The information in this article applies to:
- Microsoft Excel 97 for Windows
This article was previously published under Q161903 SUMMARY
Visual Basic for Applications in Microsoft Excel 97 incorporates many more
events for activating macros. Some of the new events include MouseDown,
MouseUp, KeyDown, and KeyUp. One of the Arguments returned by these
particular events, Shift, denotes which Key (SHIFT, CTRL, or ALT) on your
keyboard is pressed when one of the aforementioned events is triggered.
This articles provides a sample macro that shows how to use the Shift
argument returned by the MouseDown event of a CommandButton.
REFERENCES
For more information about the MouseDown or MouseUp Events, click the
Office Assistant, type MouseDown,click Search, and then click to view
"MouseDown, MouseUp Events".
| Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
|---|
| Keywords: | kbdtacode kbProgramming KB161903 |
|---|
|