+ Reply to Thread
Results 1 to 6 of 6

VB to Create Summary Sheet using all other sheets within the workbook.

  1. #1
    Registered User
    Join Date
    01-10-2012
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    62

    VB to Create Summary Sheet using all other sheets within the workbook.

    I have the following code that works perfectly except for the fact that when it creates the summary sheet it "duplicates it". Therefore, if I have 3 sheets it copies each of these 3 sheets to the summary sheet 2 times. It is creating the summary sheet and adding itself to the summary sheet. << If that makes any sense. Can someone help by fixing the code to not duplicate. Thanks!

    Please Login or Register  to view this content.

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

    Re: VB to Create Summary Sheet using all other sheets within the workbook.

    I'm glad my macro is useful to you. Odd... those blank lines at the top used to have authorship info...strange how they disappeared, heh.

    The macro includes code to exclude the Summary from the copying which appears to have been edited so it is no longer correct:
    Please Login or Register  to view this content.


    Original Code
    Last edited by JBeaucaire; 04-27-2012 at 01:11 PM.
    _________________
    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!)

  3. #3
    Registered User
    Join Date
    01-10-2012
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: VB to Create Summary Sheet using all other sheets within the workbook.

    Ha yea i know you did it and i thought i would be the only one seeing it so i got rid of that stuff. I didn't think i would be reposting it. I still have that version
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-10-2012
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: VB to Create Summary Sheet using all other sheets within the workbook.

    so can i do an else if so that sheet1 and the the summary are not copied?

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

    Re: VB to Create Summary Sheet using all other sheets within the workbook.

    Expand to this:

    Please Login or Register  to view this content.

    If that takes care of your need, please select Thread Tools from menu above and set this topic to SOLVED.

  6. #6
    Registered User
    Join Date
    01-10-2012
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: VB to Create Summary Sheet using all other sheets within the workbook.

    Thanks Jerry

+ 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