Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.2 KB

mouseicon-property.md

File metadata and controls

41 lines (28 loc) · 1.2 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
MouseIcon property
fm20.chm2001540
fm20.chm2001540
Office.MouseIcon
b5834d6d-76ad-73e6-b55d-0ab4caa643ef
11/16/2018
medium

MouseIcon property

Assigns a custom icon to an object.

Syntax

object.MouseIcon = LoadPicture(pathname)

The MouseIcon property syntax has these parts:

Part Description
object Required. A valid object.
pathname Required. A string expression specifying the path and filename of the file containing the custom icon.

Remarks

The MouseIcon property is valid when the MousePointer property is set to 99. The mouse icon of an object is the image that appears when the user moves the mouse across that object.

To assign an image for the mouse pointer, you can either assign a picture to the MouseIcon property or load a picture from a file by using the LoadPicture function.

See also

[!includeSupport and feedback]