+ Reply to Thread
Results 1 to 3 of 3

Merge workbooks in a folder and rename sheets to previous filenames

Hybrid View

  1. #1
    Registered User
    Join Date
    08-08-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    1

    Question Merge workbooks in a folder and rename sheets to previous filenames

    Hi all

    slightly struggling with the following.. would be amazing if anyone could help!!

    I have a folders each containing different excel files consistently named "Provider A Product X Month Year", and each contain either one sheet only or the standard Sheet 1, .., Sheet 3

    Now I would love to merge all of those workbooks (only the first Sheet in case of multiple sheets in a workbook) into one, and have all sheets to be renamed "Month Year", same as in the respective original filnames


    Alternatively, or even better, it would be best to have all files merge into the same worksheet, underneath each other, and have the "Month Year" part of the filename be an extra column. I.e. if I have data in e.g. A1:D50 then the macro would add a new column A and write "Month Year" into each of A1:A50

    Any thoughts very much appreciated!

    Thanks
    Markus

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Merge workbooks in a folder and rename sheets to previous filenames

    Please attached sample workbook, its make very easy to resolve your query........
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Merge workbooks in a folder and rename sheets to previous filenames

    Hi, Markus ,

    maybe Merge data from all workbooks in a folder can give you a hint on how to solve the problme (or https://sites.google.com/a/madrocket...s-to-one-sheet).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using Macro, how to rename the Filenames in an Folder
    By Karthik@1305 in forum Excel Programming / VBA / Macros
    Replies: 33
    Last Post: 10-15-2014, 04:57 AM
  2. Copy & rename sheets across multiple workbooks into one master.
    By CapnSef in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-25-2012, 03:58 AM
  3. Merge workbooks/sheets
    By Dutchvillain in forum Excel General
    Replies: 2
    Last Post: 10-19-2010, 02:49 AM
  4. Rename FileNames Formats
    By pr4t3ek in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2009, 12:59 PM
  5. using excel to rename filenames?
    By vmorgan in forum Excel General
    Replies: 1
    Last Post: 03-14-2006, 02:15 PM

Tags for this Thread

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