Dmitriy Kritskiy
asked on
Excel VBA: Copy paste a lrage range and remove ' in front in each cell
I have a simple routine that copies and pastes formulas from one sheet to another when user clicks a button, let's say the following is the code:
If I wanted to store there formulas as text so that they are not calculating when not needed and have '= in front of all of them on formulasheet tab, is there a way to write a code so that it removes ' when pasting values so that formulas become formulas again?
ThisWorkbook.Worksheets("formulasheet").Range("A1:D500").Copy
ThisWorkbook.ActiveSheet.Range("A1:D500").PasteSpecial xlPasteFormulas
ThisWorkbook.ActiveSheet.Range("A1:D500").PasteSpecial xlPasteFormats
If I wanted to store there formulas as text so that they are not calculating when not needed and have '= in front of all of them on formulasheet tab, is there a way to write a code so that it removes ' when pasting values so that formulas become formulas again?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You're welcome.