+ Reply to Thread
Results 1 to 9 of 9

Summary Sheet

  1. #1
    Registered User
    Join Date
    07-02-2013
    Location
    Bermuda
    MS-Off Ver
    Excel 2007
    Posts
    5

    Summary Sheet

    Good Day,

    I have to build a summary sheet with multiple columns, one with sheet name, the value from each sheet in B35, & B36. My workbook has 465 sheets with another 40 or so to add. I used this macro to build a list, which gave me each sheet name but for the life of me I can't figure out how to and the columns I need for the summary of values.

    Please Login or Register  to view this content.
    Thanks for any help out here, oh and by the way I didn't write the one above and just started working with macros so I'm still kind of clueless. Todd
    Last edited by arlu1201; 07-04-2013 at 10:09 AM.

  2. #2
    Registered User
    Join Date
    06-22-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    65

    Re: Summary Sheet

    TBears,

    The code below loops through worksheets 2 to n in the workbook and lists the output in worksheet(1) (i.e. sheet1). In column A you will get worksheet name, column B value of cell B35 and column C value of cell B36.

    Please Login or Register  to view this content.
    Regards

    David
    Last edited by JBeaucaire; 08-14-2013 at 10:45 AM.

  3. #3
    Registered User
    Join Date
    07-02-2013
    Location
    Bermuda
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Summary Sheet

    David,

    My worksheets are named as such, I only need values from the B&M CO CS# 3, not B&M CO Breakout CS# 3 and so on. That said, will the macro above still work? But the Breakout sheets don't have values in B35 & B36.


    B&M CO CS# HV-A
    B&M CO Breakout CS# HV-A
    B&M CO CS# HV-B
    B&M CO Breakout CS# HV-B
    B&M CO CS# 1
    B&M CO Breakout CS# 1
    B&M CO CS# 2
    B&M CO Breakout CS# 2
    B&M CO CS# 3
    B&M CO Breakout CS# 3
    Last edited by TBears; 07-02-2013 at 11:58 AM.

  4. #4
    Registered User
    Join Date
    06-22-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    65

    Re: Summary Sheet

    TBears,

    Create a new worksheet and name "Index". The macro below will list cells B35 and B36 from those worksheets that do not contain the string "Breakout".

    Please Login or Register  to view this content.
    Regards

    David
    Last edited by JBeaucaire; 08-14-2013 at 10:45 AM.

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

    Re: Summary Sheet

    TBears,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. In order to put code tags, either type [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] at the end of it, OR you can highlight your code and click the # icon at the top of your post window.
    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]

  6. #6
    Registered User
    Join Date
    07-02-2013
    Location
    Bermuda
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Summary Sheet

    David,

    Thanks that worked great. I have tried to build on it. I have to create 2 reports, which are extensive. There are 25 sheets in the workbook I don't want values from other than the "Breakout" sheets there are a total of 534 sheets in the workbook, I need the values from like 260 of them, and I'm trying to populate the summary sheet, I built the following which I thought would work but it gives the error Next For, I don't know for what? Anyway could you look at this and see what I did wrong?

    Please Login or Register  to view this content.
    Last edited by TBears; 07-06-2013 at 12:22 PM.

  7. #7
    Registered User
    Join Date
    07-02-2013
    Location
    Bermuda
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Summary Sheet

    This is the summary I'm Trying to populate.

    Capture Summary.PNG

  8. #8
    Registered User
    Join Date
    07-02-2013
    Location
    Bermuda
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Summary Sheet

    Ok I tried to tweak, now not sure, still have compile error, next without for, do I need the activate at the end of the code?


    Please Login or Register  to view this content.
    Last edited by TBears; 07-06-2013 at 12:20 PM.

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Summary Sheet

    Try this approach instead, that many IFs is a less efficient way of excluding that many sheets:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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