+ Reply to Thread
Results 1 to 2 of 2

Macro - Copy current tab to new workbook

  1. #1
    Registered User
    Join Date
    11-10-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    27

    Macro - Copy current tab to new workbook

    I have two files saved.

    2011 rolling 12.xlsx
    2011 Budget rolling 12 updater.xlsx

    I'm trying to write a Macro and struggling

    I am building the macro within the 2011 Budget rolling 12 updater.xlsx workbook. I will have the PL tab displayed. This spread sheet has multiple tabs.
    1. I need to run the macro and it will copy cells from A1 to R315 of the 2011 Budget rolling 12 updater.xlsx workbook PL tab

    2. I need it to auto create a new tab in 2011 rolling 12.xlsx workbook and name it the tab cell contents of C1 of the 2011 Budget rolling 12 updater.xlsx PL tab.

    3. Paste the copied contents - Values only to A1 in the newly created tab


    Or something of the sorts. It could save me hours of copy and pasting
    Thank you

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro - Copy current tab to new workbook

    Something like this will do it, this macro goes into the updater book, make sure you save it as a .xlsm file or the macro will get deleted.
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1