lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
Inspired by this post https://www.mrexcel.com/forum/excel...y-removing-formulas-not-converting-table.html
I tried my own code to get rid of all functions in the the whole sheet and replace them with the value but it did not work. Any help would be appreciate. Thank you.
Inspired by this post https://www.mrexcel.com/forum/excel...y-removing-formulas-not-converting-table.html
I tried my own code to get rid of all functions in the the whole sheet and replace them with the value but it did not work. Any help would be appreciate. Thank you.
Code:
Sub clearformulas()
Dim ws As Worksheet
Set ws = Workbooks(1).Worksheets(1)
ws.Cells.Copy PasteSpecial.xlPasteValues
Application.CutCopyMode = False
End Sub