L
Legacy 330376
Guest
Hi Guys,
I am trying to cut and paste rows from a worksheet(risk) into another worksheet(archive).
This works, however I want to shift the empty row up from the (risk) worksheet, without losing my formatting/ formulas. Any ideas?
Thanks in advance
I am trying to cut and paste rows from a worksheet(risk) into another worksheet(archive).
This works, however I want to shift the empty row up from the (risk) worksheet, without losing my formatting/ formulas. Any ideas?
Thanks in advance
Code:
Dim LastRow As Long
Dim destRng As Range
Application.ScreenUpdating = False
With Sheets("Archive")
Set destRng = .Range("A" & .Cells(.Rows.Count, "A").End(xlUp).Row + 1)
LastRow = Sheets("Risk").Range("A" & Rows.Count).End(xlUp).Row
Sheets("Risk").Range("A4:W" & LastRow).Cut Destination:=destRng
.Columns("A:W").AutoFit
End With
Application.ScreenUpdating = True
End Sub