Link to home
Start Free TrialLog in
Avatar of Dmitriy Kritskiy
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:
ThisWorkbook.Worksheets("formulasheet").Range("A1:D500").Copy
    ThisWorkbook.ActiveSheet.Range("A1:D500").PasteSpecial xlPasteFormulas
    ThisWorkbook.ActiveSheet.Range("A1:D500").PasteSpecial xlPasteFormats

Open in new window


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
Avatar of [ fanpages ]
[ fanpages ]

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of [ fanpages ]
[ fanpages ]

You're welcome.