+ Reply to Thread
Results 1 to 7 of 7

Different Worksheets with Similar name issues

  1. #1
    Registered User
    Join Date
    08-04-2013
    Location
    Barcelona
    MS-Off Ver
    Excel 2007
    Posts
    4

    Different Worksheets with Similar name issues

    Hi everyone,

    One week ago I started using VBA in order to improve some Excel files from my company. The Excel file we use Works like this: We analyze several spots, and every spot needs 4 worksheets. When we analyze the second spot, we press a button and 4 more worksheets appear. So we end up having:

    Intro

    First
    Second
    Third
    Fourth
    First (2)
    Second (2)
    Third(2)
    Fourth(2)
    Final

    * If you press again the button, you will have the following worksheets:

    First
    Second
    Third
    Fourth
    First (3)
    Second (3)
    Third(3)
    Fourth(3)
    First (2)
    Second (2)
    Third(2)
    Fourth(2)
    Final

    * It is okay to have the (3) before the (2), it is easier to work with this workbook if it Works like this.

    The thing is: The First, Second and Third worksheets are used to get some info in the Fourth (n) Workbook. So What you need is the range C2:Z732 in every fourth workbook.

    Then, what i need is to sum every C2:Z732 from every worksheet which name includes "Fourth" to the "Final" Worksheet.

    I have tried to create some loops but i haven't been able to acquire any good result.


    Thank you very much for your help.
    Last edited by narkissos; 08-04-2013 at 02:41 PM.

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

    Re: Different Worksheets with Similar name issues

    Hi narkissos,
    maybe something like this
    Please Login or Register  to view this content.
    And please
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.
    Posting code between
    Please Login or Register  to view this content.
    tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

  3. #3
    Registered User
    Join Date
    08-04-2013
    Location
    Barcelona
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Different Worksheets with Similar name issues

    Hi Nilem,

    First of all thank you very much for your help and sorry about the Rule 3.

    Unfortunately, this macro doesn't exactly do what i'm looking for.

    As you may imagine, every Fourth Worksheet have a matrix of 24h x 2 years of info (the C2:Z732).

    What I want is the Final worksheet to still have the C2:Z732 configuration, just that every cell in the Range C2:Z732 is actually the sum of the same cell in the Fourth's Worksheets.

    I imagine I haven't expressed myself correctly.

    Thank you very much for your help!


    Edit: Right now what it does is copy the Sum of every Fourth C2:Z732 in a different cell.
    Last edited by narkissos; 08-04-2013 at 02:24 PM.

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

    Re: Different Worksheets with Similar name issues

    Narkissos, please add the tag code in your first post (or better remove the code from your post)

  5. #5
    Registered User
    Join Date
    08-04-2013
    Location
    Barcelona
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Different Worksheets with Similar name issues

    Done! Sorry, new here >.<

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

    Re: Different Worksheets with Similar name issues

    Thanks
    and try it
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-04-2013
    Location
    Barcelona
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Different Worksheets with Similar name issues

    It works like a charm.

    THANK YOU!!!!

    I'll try to understand everything you've done here.

    Thank you very much. Really!

+ 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. Possible Sumproduct or similar issues
    By arthurphil in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-07-2013, 10:27 AM
  2. Replies: 1
    Last Post: 11-01-2009, 10:39 AM
  3. Compare 2 similar excel worksheets
    By Nadia in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-28-2006, 09:25 AM
  4. Combining two similar worksheets and showing changes
    By dbsudy in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-17-2006, 06:40 PM
  5. [SOLVED] Comparing data in two similar worksheets
    By HiRllr21 in forum Excel General
    Replies: 0
    Last Post: 02-02-2005, 01:06 PM

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