I'm working on one project where I'm using VBA and inbuilt formulas in Excel Macro file. In the end want to remove formulas once it has done processing and calculating.
- Option 1:-
sht.UsedRange.Value2 = sht.UsedRange.Value2
- Option 2:-
rng.Value2 = rng.Value2
' for specific range
Issue
Trying to remove Excel formulas using above code. However, values are pasted in other cells i.e. earlier structure is getting changed to other addresses. e.g. A5 value is placed in A10.
So not sure what's happening here. Any suggestion?
So I have used cell to cell logic to replace my formulas.
cl.Value2 = cl.Value2
This is working perfectly but very time consuming. Any suggestions?