Macro to Copy Last 2 Sheets to a New Workbook

captainxcel

New Member
Joined
Jul 28, 2017
Messages
35
Office Version
  1. 2016
Platform
  1. Windows
I have a (model portfolio) macro enabled workbook with 3 company-focused sheets and 2 client-focused sheets. When changes are made to the portfolios on sheets 1-3 they flow to the nicely formatted sheets 4 and 5 via cell and name references. Then I ... 1) copy the last 2 sheets into a new workbook, pasting values 2) ensure the formatting and column widths are correct, 3) rename the sheets to the same sheet names as the master workbook, and 4) then save that new workbook as "Model Portfolios mm.dd.yyyy".xlsx" (i.e. not macro enabled). I then save to the cloud (Box.com) in order to memorialize the changes via their upload date and time stamping. Would anyone know if a macro could accomplish steps 1-4 and if so could someone take a shot at this. I thought about just recording but haven't tried that yet. Would recording work?
Thanks in advance.
 
Last edited by a moderator:

Excel Facts

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

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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