+ Reply to Thread
Results 1 to 5 of 5

macro to copy a specific worksheet from all open files into one file

  1. #1
    Registered User
    Join Date
    09-07-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    20

    macro to copy a specific worksheet from all open files into one file

    Hi All,

    I know how to record a basic macro (but do not know VBA) so cannot edit the solutions that I find on the net to suit my requirements.

    I have a number of files in a folder (that I can open myself). Each file has multiple worksheets.
    I would like to copy the first/leftmost worksheet (all with different names) from each open file as individual worksheets; then put them in the 'Active empty file' (which has this macro).

    In the first empty worksheet (which is also the active worksheet), I want a list of the 'worksheet names' that have been added. This is to check that I have not missed any file.

    Thank you for your help in advance.
    Regards,
    Manjula

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: macro to copy a specific worksheet from all open files into one file

    So you do not want the macro to open each file for you, copy the sheet and close the file? You want to open the files yourself and then run the macro?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    09-07-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: macro to copy a specific worksheet from all open files into one file

    Yes Arlette,

    the names of the files vary every month.
    Thank you

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: macro to copy a specific worksheet from all open files into one file

    Even if the file names change each month, as long as they are in 1 folder, the macro should be able to work with them.

  5. #5
    Registered User
    Join Date
    09-07-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: macro to copy a specific worksheet from all open files into one file

    Even the folder name varies, as the months progress.
    I would prefer to open the files myself.
    .......but if you think the macro would work better any other way, I am totally ok with it :-)

+ 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