+ Reply to Thread
Results 1 to 4 of 4

Copying named worksheet from a workbook to a new workbook

  1. #1
    Registered User
    Join Date
    03-10-2010
    Location
    peterborough
    MS-Off Ver
    Excel 2003
    Posts
    10

    Copying named worksheet from a workbook to a new workbook

    Hi,

    Can somebody help me with a code. I have over 100 files all containing same named worksheets. E.g A file named Shemebudget.xls will contain worksheets named Staff, Training, I&E, Assets etc..

    I want a code that will copy a worksheet say I&E from each file and saved into a single workbook and rename each tab with the name of the file.

    So all the help will be greatly appreciated.

    Thanks
    Last edited by s999; 03-17-2010 at 06:53 AM.

  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: Copying named worksheet from a workbook to a new workbook

    Try this:
    Please Login or Register  to view this content.

    Be sure to edit the fPath to your folder with files in it. The macro will create an Imported folder in the same directory and put the files it imports in there so you know they've been processed.
    Last edited by JBeaucaire; 03-10-2010 at 01:00 PM.
    _________________
    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
    Registered User
    Join Date
    03-10-2010
    Location
    peterborough
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Copying named worksheet from a workbook to a new workbook

    Thanks code worked wonderfully

  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: Copying named worksheet from a workbook to a new workbook

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box 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