+ Reply to Thread
Results 1 to 2 of 2

Copy active sheet to a new workbook, close that work book and return

  1. #1
    Registered User
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Thumbs up Copy active sheet to a new workbook, close that work book and return

    Hi All

    I am guessing this is an easy fix but I am fairly new to the world of vba.

    I am using the following code to create a copy of a master workbook and save it by a user defined name. The problem is that this code creates a new workbook when all I want to do is copy the current values on the active sheet. Ideally I would like to save a copy of the acitve sheet, close that copy and return to the master workbook.

    Any ideas?
    Please Login or Register  to view this content.
    Last edited by arlu1201; 03-30-2012 at 03:48 AM. Reason: Put code tags, plz do so in future.

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Copy active sheet to a new workbook, close that work book and return

    If you want to learn, then use the macro recorder. Turn on the recorder, then do what you want, then stop the recording and look at what you have got.

    so.....

    turn on the recorder
    right click the sheet and make a copy to a new workbook.
    save it (give it a name)
    close it

    turn off the recorder.

    Then work on the code that is recorded. You will learn a lot more than someone giving you the answer here. So give it a go and then when/if you have problems adapting it, then ask for help again.

    Just my opinion

+ 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