+ Reply to Thread
Results 1 to 16 of 16

create multiple tabs automatically by copying data form other sheets

  1. #1
    Registered User
    Join Date
    08-16-2017
    Location
    Germany
    MS-Off Ver
    15.31
    Posts
    35

    create multiple tabs automatically by copying data form other sheets

    Hi All,

    I need some help in coding to automate my sheet. I created dummy sheet which looks like my original sheet and following are the step by step requirements.
    The expected output is "Samplesheet" in attached dummy sheet.


    Step 1. In Tab “Caps” , look for Column "C" and create Tabs on the basis of Column “C”. 1 Tab per row (but no repetition)- so that means "Test 1, Test 2, Test 3 ....should be separate tabs).
    Step 2. Search for the name of Tab in Column “L” of Sheet “Sols” and if the string matches - Copy Column A, B and K (ID, Dependency) in all Tabs Horizontally (please have a look at attached sheet).
    Step 3. Look for the name of Tab in Column “D” of sheet “Rules”, if it matches; check Column C, and if Column has value “Circus” in it -> Copy Values from Column A and B and E (Ref and Description) and paste it in result Tab Vertically. The value of Column "E" should be copied for all busy columns. For example, if you look in the "resultsheet" "D5,D6, D7" all has same value copied from Column "E" of Rules tab.
    Step 4. At last Check if value of Column “M” from “Sols” matches with Value of Column “E” on result Tab. If yes then mark it Green and if not mark it Red.

    Thanks for looking into my thread.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: create multiple tabs automatically by copying data form other sheets

    1) You need to change from Source & Tetsing 8 to Source & Testing 8 in Caps!C10
    Try and see if this is how you wanted.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-16-2017
    Location
    Germany
    MS-Off Ver
    15.31
    Posts
    35

    Re: create multiple tabs automatically by copying data form other sheets

    Hi,

    Thanks a lot for the code. Works amazingly on the test sheet.
    But when I try it on original sheet, it gives me below error:
    "run-time error "1004": Application-defined or object defined error.
    I only changed "Circus" -> "Solution". Everything else is same.
    Another difference is that original sheet contains around 151 rows for "sols" , 500 rows for "rules" and 50 rows for "caps ( if this makes any diff)

    Any idea what could be the problem.

    Thanks again for looking into this.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: create multiple tabs automatically by copying data form other sheets

    Try change to
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-16-2017
    Location
    Germany
    MS-Off Ver
    15.31
    Posts
    35

    Re: create multiple tabs automatically by copying data form other sheets

    Unfortunately same error. I only changed "Circus" -> "Solution"

  6. #6
    Registered User
    Join Date
    08-16-2017
    Location
    Germany
    MS-Off Ver
    15.31
    Posts
    35

    Re: create multiple tabs automatically by copying data form other sheets

    I am not sure if it makes a difference but in original sheet "A1 New/ Test 1" could be "A1 New test & xyz abc/Test 1" with spaces etc.

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: create multiple tabs automatically by copying data form other sheets

    I don't get error even after changing "Circus" to "Solution".

    If you upload a workbook that you get the error, I'll have a look.

  8. #8
    Registered User
    Join Date
    08-16-2017
    Location
    Germany
    MS-Off Ver
    15.31
    Posts
    35

    Re: create multiple tabs automatically by copying data form other sheets

    I cant upload original values because its highly confidential information but I made changes to same sheet by changing only names.
    I get same error on this sheet.
    Maybe it helps..

    Thanks again!
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: create multiple tabs automatically by copying data form other sheets

    When you upload a dummy file, data type/ data layouts and sheet names should be identical to your actual file.
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    08-16-2017
    Location
    Germany
    MS-Off Ver
    15.31
    Posts
    35

    Re: create multiple tabs automatically by copying data form other sheets

    oh okay. I thought I can change the names once I have the code. Thanks for the information. I will take care of this in future.
    In that case, original sheet names are:
    sols --> Solutions
    rules-->Regulations
    caps-> Security Capabilities

    and also I created dummy sheet only for relevant tabs. In original file, there are some extra tabs like information sheet, cover sheet etc, Does the position of tabs make difference also?

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: create multiple tabs automatically by copying data form other sheets

    Not in this case, what I meant was Relevant sheet names.

  12. #12
    Registered User
    Join Date
    08-16-2017
    Location
    Germany
    MS-Off Ver
    15.31
    Posts
    35

    Re: create multiple tabs automatically by copying data form other sheets

    Yes thats what I meant
    Tab names are following:
    sols (dummy sheet) --> Solutions (original)
    rules (dummy) -->Regulations (original)
    caps (dummy)-> Security Capabilities (dummy)

    Is it okay if I change them in original sheet. would it be a problem?

  13. #13
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: create multiple tabs automatically by copying data form other sheets

    Of course, you must.

  14. #14
    Registered User
    Join Date
    08-16-2017
    Location
    Germany
    MS-Off Ver
    15.31
    Posts
    35

    Re: create multiple tabs automatically by copying data form other sheets

    Perfect it works smoothly on original sheet. Thanks a lot
    But I think it doesn't do last step:

    Step 4. At last Check if value of Column “M” from “Sols” matches with Value of Column “E” on result Tab. If yes then mark it Green and if not mark it Red.
    Because it is not marking it red or green.

  15. #15
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: create multiple tabs automatically by copying data form other sheets

    Where to mark?

  16. #16
    Registered User
    Join Date
    08-16-2017
    Location
    Germany
    MS-Off Ver
    15.31
    Posts
    35

    Re: create multiple tabs automatically by copying data form other sheets

    Hi Jindon,

    Thanks for the help. It works now.

    -Kierra
    Last edited by kierra_kk; 08-22-2017 at 05:09 PM.

+ 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. Formula needed for: finding and copying data automatically between tabs
    By nickbsensory in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-11-2017, 05:52 AM
  2. [SOLVED] Automatically copying cell contents to multiple sheets
    By Bentleybabe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-18-2013, 11:11 AM
  3. Replies: 8
    Last Post: 03-01-2013, 02:34 AM
  4. Replies: 17
    Last Post: 02-01-2013, 12:20 PM
  5. Copying data from multiple TABS to one TAB in a list
    By pat brown in forum Excel General
    Replies: 2
    Last Post: 09-19-2011, 02:55 PM
  6. Copying data from multiple files (with mult. sheets) into one file and create a graph
    By Macedonia in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-30-2010, 07:37 AM
  7. Create pivot automatically in all the sheets based on the data in sheets
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-29-2008, 11:59 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