Applies To
Application Object.
Description
Returns or sets the appearance of the mouse pointer in Microsoft Excel, as listed in the following table. This property is available only in Microsoft Excel for Windows 95. Read-write.
Value |
Meaning |
xlNormal |
The default pointer |
xlWait |
The hourglass pointer |
xlNorthwestArrow |
The northwest-arrow pointer |
xlIBeam |
The I-beam pointer |
Remarks
The Cursor property isn't reset automatically when the macro stops running. You should reset the mouse pointer to xlNormal before your macro stops.
Example
This example changes the mouse pointer to an I-beam, pauses, and then changes the pointer to the default pointer.
Sub ChangeCursor() Application.Cursor = xlIBeam For x = 1 To 1000 For y = 1 to 1000 Next y Next x Application.Cursor = xlNormal End Sub