good afternoon
I have table with various calculations. Depending on certain criteria, I would like to paste the formulas in the row to values.
I've written a macro to apply filters to determine which rows need to be pasted as values (which works and gives a correct filtered list), and then I've written the following:
Set rng = Range("au3:cj" & lrow).SpecialCells(xlCellTypeVisible)
For Each cell In rng
cell.Copy
cell.PasteSpecial xlPasteValues
Next cell
Which seems to work, but I've underestimated the amount of cells and it seems to be taking forever. I've stopped the code after 5 mins or so and it was nowhere near finishing.
Ideally, I'd like to change the "Copy every visible cell and paste as values" to "Copy every visible row and paste as values" (as there's nothing on the visible rows that need to be formula driven, so hopefully speeding up the process) but I can't seem to make it work.
If anyone could point me in the right direction I'd appreciate it!
Thank you
Jon
I have table with various calculations. Depending on certain criteria, I would like to paste the formulas in the row to values.
I've written a macro to apply filters to determine which rows need to be pasted as values (which works and gives a correct filtered list), and then I've written the following:
Set rng = Range("au3:cj" & lrow).SpecialCells(xlCellTypeVisible)
For Each cell In rng
cell.Copy
cell.PasteSpecial xlPasteValues
Next cell
Which seems to work, but I've underestimated the amount of cells and it seems to be taking forever. I've stopped the code after 5 mins or so and it was nowhere near finishing.
Ideally, I'd like to change the "Copy every visible cell and paste as values" to "Copy every visible row and paste as values" (as there's nothing on the visible rows that need to be formula driven, so hopefully speeding up the process) but I can't seem to make it work.
If anyone could point me in the right direction I'd appreciate it!
Thank you
Jon