I have text Total" in Col A
I have written code to copy & paste values in C2:D & Last row (LR) F2:G & Last row
I need the formula to be amended so that the last row is 3 rows before "Total" in Col A
Your assistance is most appreciated
I have written code to copy & paste values in C2:D & Last row (LR) F2:G & Last row
I need the formula to be amended so that the last row is 3 rows before "Total" in Col A
Your assistance is most appreciated
Code:
Sub Range_ValueFormulas()
Dim lr As Long
With Sheets("Cash Sales")
lr = .Cells(.Rows.Count, "A").End(xlUp).Row
.Range("C2:D" & lr).Copy
.Range("C2").PasteSpecial Paste:=xlPasteValues
.Range("F2:G" & lr).Copy
.Range("F2").PasteSpecial Paste:=xlPasteValues
.Application.CutCopyMode = False
End With
End Sub