如何使Excel事件无效
时间:2023-09-11 15:31:36
在Excel VBA中,如果需要使Excel事件无效以方便用户的操作体验,可通过VBA使Excel事件无效。Excel2003可通过VBA宏使Excel事件无效。
使Excel事件无效的方法:
首先按“Alt+F11”组合键,Excel2003打开代码编辑器,单击“插入”菜单-“模块”,双击插入的模块,在右侧的代码窗口中输入:
Sub Excel_Partner()
Application.EnableEvents = False
ActiveWorkbook.Save
MsgBox "Excel事件已无效,下面将恢复!"
Application.EnableEvents = True
ActiveWorkbook.Save
End Sub
按F5运行键运行程序,即可使Excel事件无效。
标签:事件,可通过,插入,无效,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
装系统步骤
2023-04-24 09:31:46
![](https://img.aspxhome.com/file/2023/1/a276742_0s.gif)
Excel表格如何使用乘法函数公式
2023-02-26 14:48:10
excel怎样插入虚线数字符号
2023-07-21 06:32:10
Win7,干净启动排查
2022-01-21 15:35:44
![](https://img.aspxhome.com/file/2023/2/a290064_0s.gif)
Excel2013在低配置的电脑中经常无响应该怎么办?
2023-01-13 02:04:22
![](https://img.aspxhome.com/file/2023/3/42393_0s.jpg)
Win10系统开机不显示桌面解决方法
2022-06-30 08:49:32
![](https://img.aspxhome.com/file/2023/1/a276909_0s.png)
Win7系统IE浏览器收藏夹变成灰色如何处理?
2023-09-06 10:23:26
![](https://img.aspxhome.com/file/2023/4/a311890_0s.png)
电脑版wps表格如何制作数据对比图
2022-03-12 02:32:35
![](https://img.aspxhome.com/file/2023/6/a183996_0s.png)
word文档如何绘制排版出横线
2022-09-15 12:14:09
![](https://img.aspxhome.com/file/2023/6/31766_0s.png)
Word域切换及更新快捷键
2023-10-09 19:26:36
用U盘安装Win8增大C盘空间的解决方法
2022-12-19 01:12:52
![](https://img.aspxhome.com/file/2023/3/a301298_0s.jpg)
Excel与PowerPoint数据同步更新
2022-04-05 06:12:44
![](https://img.aspxhome.com/file/2023/10/a344776_0s.jpg)
解决win7音频服务未运行问题有妙招
2022-10-15 04:21:50
![](https://img.aspxhome.com/file/2023/4/a313105_0s.png)
创建瀑布图
2023-02-01 17:16:40
![](https://img.aspxhome.com/file/2023/2/a143442_0s.png)
电脑u盘多少钱一个-电脑u盘价格及品牌推荐介绍
2022-01-22 01:46:37
![](https://img.aspxhome.com/file/2023/4/a309849_0s.png)
steam安装未响应怎么办?
2022-11-29 06:28:35
![](https://img.aspxhome.com/file/2023/6/a325905_0s.jpg)
word怎么打钩和叉
2022-12-26 23:41:45
![](https://img.aspxhome.com/file/2023/7/34377_0s.gif)
window10系统损坏了如何修复进入?window10系统损坏了修复教程
2023-11-08 09:47:33
![](https://img.aspxhome.com/file/2023/5/48105_0s.jpg)
Win 7 C盘瘦身的三个方法分享
2023-06-25 04:32:58
![](https://img.aspxhome.com/file/2023/29/a258100_0s.jpg)
在Mac上添加,删除和延迟启动项的方法
2023-02-21 05:03:39
![](https://img.aspxhome.com/file/2023/3/a209943_0s.jpeg)