Creating Working Archive Document

red_jon

New Member
Joined
Feb 25, 2016
Messages
7
Hi, im pretty new to excel and vba so please bare with me.

I want to create an archive workbook where I can keep adding tabs every month for reporting purposes.

I only want to copy one particular tab every month from my master workbook into the archive document. This being named as the current month i.e. "January" "February" "March" and so on....

Can anybody guide me to a way of achieving this? I been searching everywhere for the solution.

Note: Having both documents open at the same time is not a problem but would prefer it not to be.

Your help would be much appreciated.

Thanks,</SPAN>
 
Hi Andrew,

This seems to do the job locally, however the files are saved on Sharepoint. Could you provide me with some code that would Check Out the document - copy the sheet - Check Back In - Close

Code:
Sub Archive_Report()
    Application.ScreenUpdating = False
    Workbooks.Open Filename:= _
        "\path....\archive.xlsm"
    Windows("Copy of Final test.xlsm").Activate
    Sheets("Summary Report").Select
    Sheets("Summary Report").copy Before:=Workbooks("archivexlsm").Sheets(1)
    ActiveSheet.Buttons.Delete
    ActiveSheet.Name = Format(Date, "Mmmm,d,yyyy")
    ActiveWorkbook.Save
    ActiveWindow.Close
    Application.ScreenUpdating = True
End Sub
 
Upvote 0

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