+ Reply to Thread
Results 1 to 8 of 8

Showing entries in separate sheets according to column criteria

  1. #1
    Registered User
    Join Date
    11-12-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    4

    Showing entries in separate sheets according to column criteria

    Dear all

    I am looking for the easiest way to make an excel-sheet that allows the user to see a selection of the entries in a gross list (one sheet), with a range of criteria in the last column.

    E.g.:

    Person A - Adress - Phone - X - Y - Z

    Then I would like to have sheets X, Y, Z that list all the entries of the persons with a Yes in column X, Y, Z.

    I think I need to code a macro and have a front page sheet, where the user clicks a "update"-button running the macro (which I understand in principle, but I don't know how to do it). Is this the case, or is there a simpler way of doing this?

    Best regards,
    gbnitram

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

    Re: Showing entries in separate sheets according to column criteria

    We can help you out. Why dont you attach a sample file and explain with the help of it?

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    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]

  3. #3
    Registered User
    Join Date
    11-12-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Showing entries in separate sheets according to column criteria

    Sample.xlsx

    Great idea! Here is a sample file.

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

    Re: Showing entries in separate sheets according to column criteria

    What if there is already data existing in X, Y, Z and Relevant? Should that be cleared or should this data be copied to the next available row in each of these sheets?

  5. #5
    Registered User
    Join Date
    11-12-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Showing entries in separate sheets according to column criteria

    The idea is that all editing should take place in the gross list. (This in not practical, but I figured that it would make the task simpler).

    This means that the sheets relevant, x, y, z should simply be replaced by the updated items in the gross list.

    Thanks for your help!

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

    Re: Showing entries in separate sheets according to column criteria

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button

  7. #7
    Registered User
    Join Date
    11-12-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Showing entries in separate sheets according to column criteria

    Thanks, Arlette. That's absolutely perfect!!!

    There is only one small thing I'd like to add. I've been considering the user interface, and it would probably be good if relevant, x, y and z were read-only so that people do not insert their changes and additions in the boxes that will be erased by updating.

    I assume that I should add code before and after the script, so that it can add the values from the gross list? Or is the macro able to run even though I make three of the sheets read-only?

    Again, thank you so much for your help. I would probably never have figured this out on my own.

    BR, gbnitram

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

    Re: Showing entries in separate sheets according to column criteria

    If you are going to password protect them, then the code will have to unprotect them, add the data and protect them again.

+ 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