Excel如何彻底隐藏工作表
时间:2023-05-19 07:16:05
在Excel进行数据处理时,有时设置参数的工作表不想让参与数据录入的人看到,以免误改动其中的数据。Excel2003虽然可以通过“格式”菜单-“工作表”-“隐藏”菜单项隐藏工作表,但是只要“格式”菜单-“工作表”-“取消隐藏”菜单项,隐藏的工作表就又显示出来了。如何让Excel彻底隐藏工作表呢?
打开VBA代码编辑器(打开VBA代码编辑器的方法参看本文后的相关说明),在左侧双击“ThisWorkbook”对象。
Excel如何彻底隐藏工作表
在右侧的窗口中输入如下代码:
Private Sub Workbook_Open()
Worksheets("sheet2").Visible = 2
End Sub
即可隐藏“sheet2“工作表,如果要隐藏其它工作表,只需要将工作表名替换即可。
这样在Excel窗口,“格式”菜单-“工作表”-“取消隐藏”菜单项是不可用的。
如果要显示“sheet2”工作表,只需要将其后的值“2”改为“1”即可。
标签:只需,工作,菜单项,隐藏,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
抖音团圆家乡年活动进不去怎么办?
2022-03-16 12:14:32
![](https://img.aspxhome.com/file/2023/6/a324627_0s.jpg)
Win10 10102预览版怎么启用和调整讲述人?
2022-08-12 07:57:18
![](https://img.aspxhome.com/file/2023/28/a250426_0s.jpg)
如何使用PPT模板怎么用
2023-03-23 15:54:09
Win10自带浏览器在哪?Win10自带浏览器查找方法
2023-07-06 18:37:31
![](https://img.aspxhome.com/file/2023/26/a223643_0s.png)
PPT2016怎么设计漂亮的分割字中字效果?
2022-09-17 08:42:54
![](https://img.aspxhome.com/file/2023/10/a345882_0s.png)
excel如何生成10000行连续序号,拒绝拖拽,一键生成
2022-06-13 00:27:15
![](https://img.aspxhome.com/file/2023/1/a140181_0s.jpg)
串并口硬盘是什么?硬盘串口和并口的区别是什么?
2023-09-04 11:47:25
![](https://img.aspxhome.com/file/2023/6/a325485_0s.jpg)
Win10如何启用OneDrive文件存储?Win10启用OneDrive文件存储方法
2023-04-13 01:38:30
![](https://img.aspxhome.com/file/2023/28/a239129_0s.jpg)
笔记本电脑黑屏怎么办?
2023-11-18 08:17:00
![](https://img.aspxhome.com/file/2023/3/a294046_0s.jpg)
u盘延缓写入失败如何解决
2023-11-01 05:30:07
![](https://img.aspxhome.com/file/2023/3/a294097_0s.jpg)
屏幕共享远程控制另一台Mac的办法
2023-11-08 12:55:04
![](https://img.aspxhome.com/file/2023/4/a214704_0s.jpg)
如何将 excel 里两列内容合并显示在同一列
2022-11-18 02:36:47
![](https://img.aspxhome.com/file/2023/4/a154394_0s.jpg)
猫猫影楼相册怎么设置时间?猫猫影楼相册设置时间的方法
2023-10-06 00:04:08
![](https://img.aspxhome.com/file/2023/8/a333881_0s.jpg)
Excel如何制作精美小学生成绩曲线图(小学生家长神器)
2023-11-07 20:56:17
![](https://img.aspxhome.com/file/2023/4/a139994_0s.jpg)
如何判断自己的office365账户是不是世纪互联账户?
2023-11-01 04:28:28
Intel Xeon V3打上民间鸡血:多核频率狂飙
2022-01-27 16:33:05
![](https://img.aspxhome.com/file/2023/3/a301549_0s.jpg)
Mac版苹果操作系统如何使用PP助手 for Mac导入音乐
2023-12-01 13:25:43
![](https://img.aspxhome.com/file/2023/8/a213968_0s.jpeg)
windows10如何多屏显示?win10多屏显示设置方法
2022-06-13 15:49:22
![](https://img.aspxhome.com/file/2023/30/a270561_0s.jpg)
如何快速删除无效WiFi,避免自动连接低质量热点
2022-11-28 04:44:42
![](https://img.aspxhome.com/file/2023/28/a239910_0s.jpg)
u盘使用前需要格式化怎么办?
2022-04-30 03:06:59
![](https://img.aspxhome.com/file/2023/30/a263970_0s.jpg)