+ Reply to Thread
Results 1 to 4 of 4

Copy active sheet from one workbook to another

  1. #1
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Copy active sheet from one workbook to another

    I have 2 open workbooks (Workbook A and B). I would appreciate a macro that copies the current active sheet (in Workbook A) into Workbook B. The sheet can be placed at the very end of Workbook B.
    Last edited by Xx7; 05-18-2012 at 04:37 PM.

  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: Copy active sheet from one workbook to another

    Maybe:

    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!)

  3. #3
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: Copy active sheet from one workbook to another

    It works, but I have a question. I will always have only 2 workbooks open in an instance. Therefore, is it possible NOT to define an exact path "C:\Path\To\The\File\Book2.xls". But instead ensure the path is the other open workbook?

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

    Re: Copy active sheet from one workbook to another

    If your workbook is open, then the line of code before that will do the job. Just take that line out, it's jus there in case you forget.

    If that takes care of your need, please select Thread Tools from menu above and set this topic to SOLVED.

+ 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