两种excel 去掉公式保留数值的方法
时间:2022-10-27 17:12:52
文章介绍两种excel 去掉公式的方法,分别通过选择性粘贴和VBA代码去掉公式。
excel 去掉公式保留数值内容常用于某种原因不愿意让别人知道公式本身。本文讲解excel 去掉公式保留数值内容的两种方法。
excel 去掉公式方法一:
全选工作表或者是按F5键打开定位对话框的“定位条件”——选择“公式”,这样就可以选取工作表所有有公式的单元格,然后复制,单击开始——粘贴——粘贴数值。
excel 去掉公式方法二:
在需要去掉公式的工作表,按ALT+F11,打开VBE编辑器,插入——模块,复制下面代码去掉公式保留值内容,按F5键运行即可去掉公式保留内容。
Sub excel去掉公式()
Dim sh As Worksheet
For Each sh In Sheets
sh.UsedRange = sh.UsedRange.Value
Next
End Sub
标签:两种,公式,去掉,数值,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
excel如何批量将小写数字转化为大写数字?
2023-08-06 06:32:14
![](https://img.aspxhome.com/file/2023/9/41399_0s.jpg)
Office 2007 SP3专业增强版 免费下载
2023-11-09 04:01:05
![](https://img.aspxhome.com/file/2023/6/16446_0s.png)
word文本框内部边距怎么设置
2022-06-13 09:09:59
![](https://img.aspxhome.com/file/2023/8/32578_0s.png)
mathtype6.9无法输入中文怎么办 mathtype6.9中文输入方法
2022-03-30 20:42:10
![](https://img.aspxhome.com/file/2023/4/28994_0s.png)
Word2007:保存文档的方法
2023-03-04 15:43:11
![](https://img.aspxhome.com/file/2023/9/24859_0s.jpg)
excel表格怎样提取某单元格内容
2023-07-28 06:15:46
excel表格如何使用sumproduct函数
2023-01-29 10:31:57
如何创建Excel加载宏
2022-04-26 20:48:30
![](https://img.aspxhome.com/file/2023/4/a142334_0s.png)
巧用Excel控件制作动态图表
2023-08-20 13:00:47
word插入表格
2023-08-03 03:07:16
![](https://img.aspxhome.com/file/2023/1/32971_0s.jpg)
Excel中使用快速隐藏锁定单元格的操作方法
2022-10-14 15:02:55
Win10鼠标失灵可以用键盘打开右键菜单栏吗?
2022-04-30 13:14:12
![](https://img.aspxhome.com/file/2023/9/52349_0s.jpg)
Word2010如何设置段落间距
2023-01-04 11:19:31
word定位快捷键大全
2022-12-12 13:15:04
![](https://img.aspxhome.com/file/2023/7/24617_0s.jpg)
excel2003设置下拉菜单教程
2023-12-02 09:56:54
在Excel中如何使用TEXT函数?
2022-06-21 09:45:16
Office 365 如何按需安装 office365安装图解教程
2023-10-07 09:43:57
![](https://img.aspxhome.com/file/2023/7/16197_0s.jpg)
excel表格中的数据怎么制作成组合图表?
2022-07-10 06:09:45
![](https://img.aspxhome.com/file/2023/9/40569_0s.jpg)
C盘空间大小最佳设置,win10的C盘空间大小设置教程
2023-10-08 02:44:14
![](https://img.aspxhome.com/file/2023/1/47131_0s.png)
word表格编辑技巧
2022-10-25 02:13:01