Excel VBA快速去除Excel中的所有公式

需求

Excel表格中如果有大量的公式,不光会影响打开、保存的速度,而且在传给别人的时候也可能会出现一些小问题,例如链接找不到等等。那么如何快速去掉单元格内的公式呢,下面提供两个小技巧。

方法一

复制---粘贴---选择值

方法二

直接打开Visual Basic编辑器(快捷键ALT+F11 ),然后复制下列代码到编辑器内,全选代码,直接F5执行:

复制代码
Sub excel去除所有公式()
    Dim sheet As Worksheet
    For Each sheet In Sheets
        sheet.UsedRange = sheet.UsedRange.Value
    Next
End Sub
相关推荐
wtsolutions2 小时前
Using the JSON to Excel API - Programmatic Access for Developers
json·excel
qq_435139572 小时前
EasyExcel(FastExcel)Excel导出功能 技术文档
excel
wtsolutions5 小时前
Understanding JSON Formats - What JSON to Excel Supports
json·excel
wtsolutions5 小时前
Advanced Features - Unlocking the Power of JSON to Excel Pro
linux·json·excel
fs哆哆7 小时前
VB.NET和VBA教程-如何查找Excel数据区域边界
excel
小矮强7 小时前
Excel中根据年月日提取月日,并按月日进行排序
excel
开开心心_Every8 小时前
图片批量压缩工具:支持有损无损两种模式
python·游戏·微信·django·pdf·excel·语音识别
wtsolutions9 小时前
Real-World Use Cases - How Organizations Use JSON to Excel
json·excel
wtsolutions9 小时前
Introduction to JSON to Excel - The Ultimate Conversion Tool
json·excel
骆驼爱记录9 小时前
Python打包命令全攻略
自动化·word·excel·新人首发