Results 1 to 4 of 4

Combine multiple sheets into one

Threaded View

  1. #1
    Registered User
    Join Date
    06-28-2021
    Location
    Lodz
    MS-Off Ver
    2016
    Posts
    3

    Combine multiple sheets into one

    Hello,

    I am having trouble creating a macro that will do the following :

    I have an excel file, with multiple sheets - each of them contains multiple columns. This excel file is refreshed daily, and my collegues have to report it on a weekly/monthly basis.

    The idea is, that i want the macro to work as follows:

    -When the person clicks 'run', the box will appear where you have to select a folder with multiple excels insde.
    -Then, i want the macro to open first excel, look for sheet called "accounts", copy it (with headers) to new excel, then close the first excel, and prooceed to the second one. In the second one, do the same (but dont copy the headers) and paste the data from the second excel below the info from the first one into the new previously created excel. And reapeat that loop for every excel that was included in the selected folder.
    -Then after all files are processed, save the excel with all copied information with current date and "combined accounts" in the title

    The challenge here is that these 'accounts' sheets might differ slightly between each other (some of them might have hidden columns, and not always the same ones). So i would like to unhide all the columns in the 'accounts' sheet before the copying process.Additionally, the format of the data might differ(usually its the same, but you never know), so it would be good to change the data to general before copying as well.
    I am kinda newbie in VBA and these hidden columns are a huge challenge for me


    looking forward to your help

    thanks!!
    Last edited by dajmosik; 11-28-2022 at 07:01 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to combine multiple cells into one cell (when there are so many cells to combine) ?
    By ngotrongnhanbrvt in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-05-2020, 03:20 AM
  2. Macro to combine multiple sheets from multiple workbooks
    By snikrs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2018, 02:08 PM
  3. Vba/macro to combine multiple workbooks with multiple sheets into one workbook
    By ReshayM in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-03-2015, 01:00 PM
  4. Excel 2007 - Combine Multiple Workbooks into one Workbook Multiple Sheets
    By mab in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2014, 02:48 PM
  5. Combine multiple sheets of multiple workbooks in one sheet
    By Djibril69 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2013, 05:18 PM
  6. [SOLVED] align or combine multiple columns from multiple sheets into one sheet in sequence
    By calif in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-28-2013, 11:49 AM
  7. Combine multiple sheets
    By sanam in forum Excel General
    Replies: 5
    Last Post: 03-03-2009, 01:12 AM

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