Compartilhar via


_Application.Cursor Property

Returns or sets the appearance of the mouse pointer in Microsoft Excel.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property Cursor As XlMousePointer
    Get
    Set
'Usage
Dim instance As _Application
Dim value As XlMousePointer

value = instance.Cursor

instance.Cursor = value
XlMousePointer Cursor { get; set; }

Property Value

Type: Microsoft.Office.Interop.Excel.XlMousePointer

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.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Excel Namespace