How to make a backup sheet of original data?

storefoto

New Member
Joined
Jul 25, 2011
Messages
2
How do I make a copy of a worksheet in excel as a backup in the same workbook before making modifications?

Please help.

I need the excel to do this automatically in the beginning so that when user starts modifications the original sheet is backup automatically.

Thanks
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi storefoto,

Welcome to MrExcel!!

Run this while on the tab in question:

Code:
ActiveSheet.Copy After:=Worksheets(Worksheets.Count)

HTH

Robert
 
Upvote 0
The macro simply copies the active (i.e. the one you're on) to the end of the workbook. It's exactly the same as:

1. Right clicking on the active tab
2. Clicking on Move or Copy... from the shortcut menu
3. Clicking on (move to end), selecting Create a copy and then clicking OK.

When you said "automatically in the beginning" I thought you already had some code which mine would just form a part of.
 
Upvote 0

Forum statistics

Threads
1,214,422
Messages
6,119,395
Members
448,891
Latest member
tpierce

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