Excel如何设置鼠标形状的方法
时间:2022-02-06 22:58:19
Excel中如何设置鼠标形状呢?通过VBA代码可以设置鼠标形状。具体参考下面介绍:
在excel工作表中,按下ALT+F11,打开VBE编辑器,插入——模块,然后在右边的代码窗口输入下面的代码:
Sub 如何设置鼠标形状()
Application.Cursor = xlIBeam ‘I 形指针
Application.Cursor = xlNorthwestArrow ‘西北向箭头指针
Application.Cursor = xlWait ‘沙漏型指针
Application.Cursor = xlDefault ‘默认指针
End Sub
然后,按F8键,单步执行,即可看到excel工作表设置的鼠标形状。
下面是一个VBA代码设置鼠标形状的截图:
如果要恢复默认鼠标形状,按下ctrl+G,在下面的立即窗口输入:Application.Cursor = Default,并按enter键执行,鼠标形状就恢复为默认的鼠标形状了。
标签:代码,形状,指针,鼠标,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
excel跨表格数据引用的操作教程
2022-08-19 18:44:16
excel2003创建下拉菜单的方法
2022-02-28 13:28:57
excel 学习笔记 (初识公式与函数)
2023-05-22 02:56:12
![](https://img.aspxhome.com/file/2023/9/a156959_0s.png)
excel根据某列中的同一值设置所在行的颜色
2022-07-13 19:25:33
![](https://img.aspxhome.com/file/2023/2/41372_0s.jpg)
Word中怎样在任意位置插入页码
2022-07-30 22:05:48
![](https://img.aspxhome.com/file/2023/2/34412_0s.gif)
excel图表快速合并所选单元格中的所有数据
2022-03-08 07:13:20
![](https://img.aspxhome.com/file/2023/2/a142402_0s.gif)
闪电PDF虚拟打印机如何给文件加上水印?
2023-06-04 09:19:45
![](https://img.aspxhome.com/file/2023/5/14995_0s.jpg)
Word文档中如何实现一个页面转向
2023-12-14 08:37:07
excel批量生成二维码的方法
2023-02-11 18:06:18
![](https://img.aspxhome.com/file/2023/5/a154185_0s.png)
excel2010如何保存为xls
2023-01-02 03:24:56
恢复我的工作并重启word的多种解决方法
2023-12-13 11:11:29
![](https://img.aspxhome.com/file/2023/2/21252_0s.gif)
word如作重复标题行?
2023-11-30 09:40:36
IF函数的使用方法
2022-08-27 13:51:39
Win10兼容性视图怎么设置?Win10兼容性视图设置方法分享
2023-12-01 18:52:40
![](https://img.aspxhome.com/file/2023/5/51335_0s.jpg)
Excel设置万位分割符的方法
2022-01-18 20:41:41
Excel工作表中快速跳转单元格的快捷键一览
2023-07-27 19:33:23
Excel中满足特定条件的查询
2022-08-13 07:40:31
Excel2007使用教程:只读密码设置与修改
2022-09-06 09:45:56
![](https://img.aspxhome.com/file/2023/4/a143514_0s.png)
AirPods Pro 爆音、降噪效果下降怎么办?
2023-11-13 19:14:53
![](https://img.aspxhome.com/file/2023/5/a194415_0s.jpg)
如何把excel表头固定的方法
2022-03-28 03:23:23