WPS 基础接口 > 表格 API 参考 > Application > 属性 > Application.Cursor 属性
返回或设置 ET 中鼠标指针的外观。XlMousePointer 类型,可读写。

语法

表达式.Cursor

表达式   一个代表 Application 对象的变量。

说明

XlMousePointer 可为以下 XlMousePointer 常量之一。
xlDefault。默认指针。
xlIBeam I 形指针。
xlNorthwestArrow 西北向箭头指针。
xlWait 沙漏型指针。

当宏停止运行时,Cursor 属性不会自动重设。在宏停止运行前,应将指针重设为 xlDefault

示例

本示例将鼠标指针形状更改为 I 形,稍停片刻,然后将其重新变为默认指针形状。

示例代码
function ChangeCursor() {

    Application.Cursor = xlIBeam
    for(let x = 1; x <= 1000; x++) {
        for(let y = 1; y <= 1000; y++) {
        }
    }
    Application.Cursor = xlDefault
}


请参阅