+ Reply to Thread
Results 1 to 26 of 26

12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    22

    12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    Hello Everyone -

    I was wondering if someone had a generic macro I could use:

    I have 12 worksheets. I want to create 1 master worksheet. The 12 worksheet look identical, but the dates might change, or text for the activities might change.

    The master sheet - should combine in order from tab 1 to 12. I would like a button to update the master sheet with the new data.

    Let me know if more detail is needed - look forward to hearing responses.

  2. #2
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    154

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    more detail is needed. How do you want the master to roll up the individual tabs? Need to see how data is set up.

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    I added a example -

    You will 12 tabs that are similar in style.

    We have 1 summary tab. I would like the data copied and linked over to the summary from the other 12 tabs. I also want a button to update on a weekly basis from other 12 tabs into 1 tab.

    ideas?
    Attached Files Attached Files
    Last edited by movingoutofindy; 03-07-2013 at 11:50 AM. Reason: Need attachment

  4. #4
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    154

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    something like...

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-07-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    I tried the code above and it only copied only a few rows. I was hoping we could add a button to the summary tab to update the tab with all new information. Do we need to build a loop?

  6. #6
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    154

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    that is a loop. It takes the information from each tab and pastes it to the master tab. So each time you run the master will update. It copies A4:BJ28 from each worksheet and pastes that to the master tab

  7. #7
    Registered User
    Join Date
    03-07-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    Hmm I keep getting a run time error 1004 - any ideas?

  8. #8
    Registered User
    Join Date
    03-07-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    Hmm I keep getting a run time error 1004 - any ideas?

  9. #9
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    154

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    attach file

  10. #10
    Registered User
    Join Date
    03-07-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    attached -

    I basically need the script to combine all 12 tabs, starting with 1 -> 12.

    I would like to have a button to created to run a update whenever needed.

    I really appreciate it! Ive been going nuts on trying to figure it out
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    154

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    Two things. First, move your code to a module (insert->module) instead of keeping it in the sheet. Second, change "TEST" to "Test"..has to tie exactly to the name..caps and all.
    I edited the code for you so now everytime you run it it will delete all the contents on the Test tab and then pull in the updated information

    Please Login or Register  to view this content.

  12. #12
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    Maybe:

    Please Login or Register  to view this content.

  13. #13
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    I have added a button on summary sheet. When you click it, it clears existing data and re-populate with fresh data.
    Attached Files Attached Files
    Last edited by AB33; 03-11-2013 at 04:47 PM.

  14. #14
    Registered User
    Join Date
    03-07-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    THANKS! It worked!

  15. #15
    Registered User
    Join Date
    03-07-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    How do I limit this code to the first 12 tabs? and not all active tabs?

  16. #16
    Registered User
    Join Date
    03-07-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    Also another twist - if I have links that connect information from the first 12 tabs with tabs outside of the first 12 - how can we run the macro by copying whats in the cell of the first 12 tabs and not the link in the formula? Because the macro runs perfectly, but 1. limit data to first 12 tabs, and copy whats in the tab and not links ...

  17. #17
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    Please specifay which code you are referring to?

  18. #18
    Registered User
    Join Date
    03-07-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    From the one you created.

  19. #19
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    to copy values only


    Please Login or Register  to view this content.
    The above line is currently on one line and change it in to separate lines
    Please Login or Register  to view this content.
    As to the limit of sheets you wanted to include or exclude you need to show me which sheets you want only(12 sheets).
    If you juste wanted 12 sheets out of 100 or so, give me the sheet names.

  20. #20
    Registered User
    Join Date
    03-07-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    Sheet names are:
    1.
    2.
    3.
    4.
    5.
    6.
    7.
    8.
    9.
    10.
    11.
    12.

    I will go ahead and try your suggestion up above.

  21. #21
    Registered User
    Join Date
    03-07-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    Sheet names are:
    1.
    2.
    3.
    4.
    5.
    6.
    7.
    8.
    9.
    10.
    11.
    12.

    I will go ahead and try your suggestion up above.

  22. #22
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    Ameded code post no 13(Attached).
    The code now only merge 12 sheets and copy values only. If you add any sheet, it will not be merged.

  23. #23
    Registered User
    Join Date
    03-07-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    If I choose to add text to the 1. 2. 3. 4. ...etc?

    Is it just an easy update to the code and tab? duplicating the same language?

  24. #24
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    If you update the sheet tab names, you need to do the same with the array J-names. J is the refelection of tabs names
    .If I knew the pattern of your sheets, I would have approached it differently, but for now use the above code and when your demand change, I can adjust it accordingly.

  25. #25
    Registered User
    Join Date
    03-07-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    quick question - how do I adjust the code to keep the formatting the same? like column size etc?

  26. #26
    Registered User
    Join Date
    03-07-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: 12 Worksheets that are similiar in look and dynamic -> Want to create 1 master

    Including like column and row formatting. The goal will be all tabs look the same.

    When I click the button right now, it copy and pastes but the rows and columns are so large.

    I appreciate it!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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