+ Reply to Thread
Results 1 to 6 of 6

Loop through tabs in a workbook to consolidate data

  1. #1
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Loop through tabs in a workbook to consolidate data

    Hello,

    I was hoping someone could help me out? I put together the attached file and code to consolidate information. The macro is running through the tabs and pasting them to the tab I specify but it is not stacking the data to consolidate all of the information to one tab. Instead it copies each tab and pastes completely over the data each time. I want it to copy sheet1 and paste it to sheet 30. Then copy sheet2 and paste it to the bottom of sheet 30 below the area it just pasted for sheet1. Any help is much appreciated.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Loop through tabs in a workbook to consolidate data

    The macro should work through however many sheets are in the file. Could be 2. Could be 100.

  3. #3
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Loop through tabs in a workbook to consolidate data

    Hi Amartin,
    try it
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Loop through tabs in a workbook to consolidate data

    Damn your awesome. Thanks! Sorry to bother you but is there a way to insert a column on each tab before consolidating where it copies the 4 digit BU - property name down the column? Example in tab sheet1 cell b8 it says 2000 - Apache Mall. Is there a way it would insert a column in A and then copy that down to the bottom of the range in column A and then copy the data over and continue to do that through all of the tabs? It would make it easyer to clean up all the data.

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Loop through tabs in a workbook to consolidate data

    Not sure, but maybe this
    Please Login or Register  to view this content.
    or attach a small sample (2 or 3 sheets) with the desired result.

  6. #6
    Forum Contributor
    Join Date
    10-24-2012
    Location
    Chicago
    MS-Off Ver
    O365
    Posts
    311

    Re: Loop through tabs in a workbook to consolidate data

    you rock. Thanks!

+ 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. [SOLVED] Extract data from a workbook with multiple tabs, into a workbook with corresponding tabs
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2013, 11:54 AM
  2. Consolidate text data from multiple tabs into one table
    By neversummer515 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 02-01-2013, 05:52 PM
  3. Replies: 12
    Last Post: 09-20-2011, 08:52 PM
  4. VB Code to Consolidate data from different files / tabs
    By tt388 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-29-2011, 11:53 AM
  5. Append Data From One Workbook to Another Workbook (Consolidate Random Columns)
    By capnhud in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-23-2010, 01: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