Creating historical version of spreadsheet

Kingclimber

New Member
Joined
Jun 29, 2018
Messages
2
Hi all,

Kinda fumbling my way through learning VBA/Excel. I'm going through different tutorials online and can't figure out how to do the following. Any help/tutorial links for this would be appreciated.

I have a spreadsheet with financial data under a given month. I need to put a button in, that A. checks the date so that B. if it is a Friday, it saves the values of all the fields (which are linked from other spreadsheets) and saves them in another tab with the same formatting. Effectively I want to create a timeline of week to week reports showing the changes in each field.

If someone could point me in the right direction that would be very much appreciated.

Thanks,
Wes
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
So this is what I've come up with.

Sub Savecopy()


' Save a copy of the current worksheet

Worksheets("Residential").Copy After:=Worksheets("Residential")
ActiveSheet.Name = Format(Date, "MM-YY")
With ActiveSheet.UsedRange
.Value = .Value
End With


End Sub

The problem with that though is that the main sheet loses all formulas and links. Anyone know how to adjust this so that the mainsheet maintains it's formulas and links, while the copied sheets are all value only copies?
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,305
Members
452,633
Latest member
DougMo

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