i have the following code, where i paste a formula to a range of cells. the problem is, that is slows down my excel sheet massively. how can i only add the calculated values instead of the formula itself?
Set rng = Range("C4") 'select cell where first value of the filtered values is
Range(rng, rng.End(xlDown)).Offset(, 1).FormulaR1C1 = "=countif(C[-3]:C[-3] ,R[]C[-1])"
Range(rng, rng.End(xlDown)).Offset(, 1).Copy
Range(rng, rng.End(xlDown)).Offset(, 1).PasteSpecial xlPasteValues