0

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.

  1. Option 1:- sht.UsedRange.Value2 = sht.UsedRange.Value2
  2. 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?

1S1a4m9
  • 27
  • 7

1 Answers1

-1

after copying the value from one cell to another or range to another range , delete or paste special (if you need values) the first cell or range ie. copy from a5 to a10 then delete or paste special A5

i hope it will work for you

  • In this case a user select entire sheet then copy, right click and paste values. No need to paste to another location. – Harun24hr May 28 '21 at 06:34