Application.Cursor Property
Returns or sets the appearance of the mouse pointer in Microsoft Excel. Read/write XlMousePointer.
Syntax
expression.Cursor
expression A variable that represents an Application object.
Remarks
| XlMousePointer can be one of these XlMousePointer constants. |
| xlDefault. The default pointer. |
| xlIBeam. The I-beam pointer. |
| xlNorthwestArrow. The northwest-arrow pointer. |
| xlWait. The hourglass pointer. |
The Cursor property isn't reset automatically when the macro stops running. You should reset the pointer to xlDefault before your macro stops running.
Example
This example changes the mouse pointer to an I-beam, pauses, and then changes it to the default pointer.
| Visual Basic for Applications |
|---|
|