MousePointer property

Specifies the type of pointer displayed when the user positions the mouse over a particular object.

Syntax

object.MousePointer [= fmMousePointer ]

The MousePointer property syntax has these parts:

Part Description
object Required. A valid object.
fmMousePointer Optional. The shape you want for the mouse pointer.

Settings

The settings for fmMousePointer are:

Constant Value Description
fmMousePointerDefault 0 Standard pointer. The image is determined by the object (default).
fmMousePointerArrow 1 Arrow.
fmMousePointerCross 2 Cross-hair pointer.
fmMousePointerIBeam 3 I-beam.
fmMousePointerSizeNESW 6 Double arrow pointing northeast and southwest.
fmMousePointerSizeNS 7 Double arrow pointing north and south.
fmMousePointerSizeNWSE 8 Double arrow pointing northwest and southeast.
fmMousePointerSizeWE 9 Double arrow pointing west and east.
fmMousePointerUpArrow 10 Up arrow.
fmMousePointerHourglass 11 Hourglass.
fmMousePointerNoDrop 12 "Not" symbol (circle with a diagonal line) on top of the object being dragged. Indicates an invalid drop target.
fmMousePointerAppStarting 13 Arrow with an hourglass.
fmMousePointerHelp 14 Arrow with a question mark.
fmMousePointerSizeAll 15 Size all cursor (arrows pointing north, south, east, and west).
fmMousePointerCustom 99 Uses the icon specified by the MouseIcon property.

Remarks

Use the MousePointer property when you want to indicate changes in functionality as the mouse pointer passes over controls on a form. For example, the hourglass setting (11) is useful to indicate that the user must wait for a process or operation to finish.

Some icons vary depending on system settings, such as the icons associated with desktop themes.

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.