Good afternoon Gurus! So, I have the code built to copy and paste the formula and formatting to the blank line below it, however I cannot for the life of me figure out how to then make the recently-copied line values so the formula is only ever on the bottom most line.
It is a historic weekly tracker, so I need the values each friday, so I want the bottom line to be the only one containing formulas, and the lines above it to all just be the values of the cells.
Here is what I have so far which works perfectly to copy the formulas and formats, just need a way to get the copied range pasted as values over itself and then as formulas and values directly below it.
It is a historic weekly tracker, so I need the values each friday, so I want the bottom line to be the only one containing formulas, and the lines above it to all just be the values of the cells.
Here is what I have so far which works perfectly to copy the formulas and formats, just need a way to get the copied range pasted as values over itself and then as formulas and values directly below it.
Code:
Sub PrepareNextweek()
Dim WS_WeeklyMetrics As Worksheet
Set WS_WeeklyMetrics = Sheets("Weekly Metrics")
TodayDate = Date
'Turn off flickering of screen while macro runs
Application.ScreenUpdating = False
'Copy/Paste Old Data
Dim copySheet As Worksheet
Dim pasteSheet As Worksheet
Set copySheet = Worksheets("Weekly Metrics")
Set pasteSheet = Worksheets("Weekly Metrics")
WS_WeeklyMetrics.Select
copySheet.Range("A5:N5").Copy
pasteSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteFormats
pasteSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteFormulas
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub