• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Copy paste data into new workbook

Abhijeet

Active Member
Hi,

I have data in workbook with 4 worksheets i want to copy those data into new workbook with 2 worksheets( SF & EE) only this workbook save in desktop with current month name & year. can some one help how to create vba code for this
 

Attachments

  • Data.xlsm
    14.7 KB · Views: 2
Hi, unclear : share at least the exact expected new workbook name … New workbook still opened once done ?​
 
The name was enough … Anyway according to the Macro Recorder a VBA procedure for starters :​
Code:
Sub Macro1()
    Sheets(Split("SF EE")).Copy
    ActiveWorkbook.SaveAs CreateObject("WScript.Shell").SpecialFolders("Desktop") & Format(Date, """\""mmm_yyyy "), 50
End Sub
Do you like it ? So thanks to click on bottom right Like !​
 
Back
Top