Auto push data from one sheet to the next one, and deletes the data after 13 weeks

Ash2987

New Member
Joined
Jan 12, 2021
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
So I'm not sure if this is even possible, but my boss wants this. Essentially I would have an excel workbook that has 14 sheets. 1-13 would represent weeks 1-13 and the 14th sheet would have a grand total based on the date from the 1st 13sheets. I know how to do this part: the issue I'm having is my boss wants sheets 1-13 to represent the current 13 weeks. So how would I write a VBA code that auto pushes the data from one week to the next(e.g. 1 to 2, and then 1 to 2 to 3... etc.) and then after the data reaches 13 weeks it disappears, or transfers to a different sheet/excel workbook.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Perhaps

VBA Code:
Sub sheetshift()

Sheets("Sheet13").Cells.ClearContents
Sheets("Sheet12").Cells.Copy Sheets("Sheet13").Range("A1")
''etc...
Sheets("Sheet1").Cells.Copy Sheets("Sheet2").Range("A1")

End Sub
 
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,366
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top