I really don't know where to begin with this one. I am trying to reduce the overhead of unnecessary formula's in my spreadsheet for items (rows) that have long since been sold and no longer need to be re-calculated every time by replacing the formula with its text (numerical) result . So I am doing this:
The problem is that I have to select each row manually (have ~ 5,000 rows to go through and the rows I need aren't necessarily contiguous) based on criteria in 2 columns.
Values in column C & D are both the result of formula's (if that makes a difference) and if the results of the formula in both Col C & D in the current row are "3" (either column might be blank, 0, 1, 2 or 3), then my script to replace the formula's needs to run on that row. If anything other than 3 & 3 in col C & D, then skip the row and evaluate the next, repeating until a blank row (Column A is blank) is found.
Can anyone help me with this?
Code:
crow = ActiveCell.Row
Application.ScreenUpdating = False
Cells(crow, "C:C").Activate
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
' Repeats 15 times for each row, using different column values
Application.CutCopyMode = False
Application.ScreenUpdating = True
Values in column C & D are both the result of formula's (if that makes a difference) and if the results of the formula in both Col C & D in the current row are "3" (either column might be blank, 0, 1, 2 or 3), then my script to replace the formula's needs to run on that row. If anything other than 3 & 3 in col C & D, then skip the row and evaluate the next, repeating until a blank row (Column A is blank) is found.
Can anyone help me with this?