Hey all,
As i don't know much about VBA i hope i can explain what i need to you guys.
I have a workbook with daily results. Now i need to copy these results daily using a button into another sheet.
Lets say Sheet Calculation range A31:E31 into Sheet HistoricalData range, new row, while adding a datestamp in this sheet.
I have the following that will copy and select the new row for each day. Now i need to add a datestamp for each time i copy this range.
As i don't know much about VBA i hope i can explain what i need to you guys.
I have a workbook with daily results. Now i need to copy these results daily using a button into another sheet.
Lets say Sheet Calculation range A31:E31 into Sheet HistoricalData range, new row, while adding a datestamp in this sheet.
I have the following that will copy and select the new row for each day. Now i need to add a datestamp for each time i copy this range.
Code:
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Dim copySheet As Worksheet
Dim pasteSheet As Worksheet
Set copySheet = Worksheets("PivotsTotals")
Set pasteSheet = Worksheets("HistoricalData")
copySheet.Range("D31:H31").Copy
pasteSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
Application.CutCopyMode = False
Application.ScreenUpdating = True
MsgBox ("Record Added")
End Sub