+ Reply to Thread
Results 1 to 11 of 11

Copying last 6 columns of 152 excel sheets/tabs into 1 sheet

  1. #1
    Registered User
    Join Date
    09-12-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    6

    Copying last 6 columns of 152 excel sheets/tabs into 1 sheet

    Hi Experts! I'm have a workbook with 152 sheets and i'm trying to copy the last 6 columns of these sheets into 1 sheet. Other than doing manually, is there a formula? I'm totally zero when it comes to macros... Thanks in advance!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Copying last 6 columns of 152 excel sheets/tabs into 1 sheet

    Hi and welcome to the forum

    Having 152 sheets to begin with sounds insane - how do you even find anything??

    to be able to make suggestions on combining the last 6 sheets, we will need some idea of whats on them, and how you want them combined?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-12-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Copying last 6 columns of 152 excel sheets/tabs into 1 sheet

    Hi Ford.... Thanks for the welcome! It's actually a catalogue.... i had it converted from pdf to excel.. that explains the number of pages. the last 6 columns of every sheet have, i presume, the same header.. and i want to combine it into 1 sheet for ease of use... is it possible?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Copying last 6 columns of 152 excel sheets/tabs into 1 sheet

    so, do you want to combine all column H (for instance) into 1 column, or will you be having 152*6 columns on the new sheet?
    what is in these columns?

  5. #5
    Registered User
    Join Date
    09-12-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Copying last 6 columns of 152 excel sheets/tabs into 1 sheet

    it's 1 sheet with 6 columns.... of all 152 sheets... how do i upload the file here? Thanks!!

  6. #6
    Registered User
    Join Date
    09-12-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Copying last 6 columns of 152 excel sheets/tabs into 1 sheet

    Hi Ford, managed to upload the file but had to delete some pages as it was above the limit...
    Attached Files Attached Files

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Copying last 6 columns of 152 excel sheets/tabs into 1 sheet

    Try this untested code with a dummy workbook instead of the original file or duplicate the original file and try it...

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  8. #8
    Registered User
    Join Date
    09-12-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Copying last 6 columns of 152 excel sheets/tabs into 1 sheet

    Hi! Unfortunately no...
    Prompt :
    Run-time error '91':
    Object variable or With block variable not set

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Copying last 6 columns of 152 excel sheets/tabs into 1 sheet

    Change this line

    Please Login or Register  to view this content.
    To

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    09-12-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Copying last 6 columns of 152 excel sheets/tabs into 1 sheet

    Hi Guru! THanks!!! Got it!! Much appreciated!

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Copying last 6 columns of 152 excel sheets/tabs into 1 sheet

    Glad it helps you and thanks for the feedback

+ 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. Replies: 1
    Last Post: 07-17-2013, 10:08 AM
  2. Replies: 0
    Last Post: 02-22-2013, 09:23 AM
  3. Replies: 17
    Last Post: 02-01-2013, 12:20 PM
  4. Copying specific same row from each sheet tabs?
    By gkeith in forum Excel General
    Replies: 1
    Last Post: 07-26-2010, 04:54 PM
  5. Copying sheet 1 from multiple books into tabs on master
    By jaikin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2009, 08:49 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