+ Reply to Thread
Results 1 to 5 of 5

Searching for specific words in sheet for attendance list

  1. #1
    Registered User
    Join Date
    09-20-2015
    Location
    Haarlem, The Netherlands
    MS-Off Ver
    Office 2016
    Posts
    16

    Post Searching for specific words in sheet for attendance list

    Hi everyone,

    I'm new to this forum and VBA programming, so I have no idea what to expect and what is too much to ask for, but here it goes.

    I want to make a VBA macro that makes attendance list.
    The data in the main sheet consists all the names and contact details of my scouting group.
    In one column (column AC) is specified wich group the kids are in (like cubs, scouts etc.)

    The goal of the VBA code is to look for the name of a group (cubs or scouts etc.) in column AC and then copy certain cells from the row in wich the group name is found. Then, it has to paste these cells into another sheet, wich has the name of the group.
    This way I want to make attendance lists that only have the membership number, full name and phone number of the kids. Every group will get their own sheet, so that whenever we have new members, the only thing that is needed is update the main sheet (wich is an .xml file I download from our online system).

    Is this in any way possible?

    The details are:
    Item----------Collumn in main sheet--Column in group sheet
    Group name------------AC-------------------not needed
    Membership number---A-------------------------A
    Full name---------------F-------------------------B
    Phone number----------O------------------------C

    Please let me know if this is in any way possible and if more info is needed.

    I'd rather not post the original file, because it contains all the personal info of our members. I added a small example, in English. Hope it helps

    I'm looking forward to your input!
    Best regards from Holland,

    - Daan
    Attached Files Attached Files
    Last edited by Bossie94; 09-20-2015 at 11:03 AM.

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Searching for specific words in sheet for attendance list

    Thank you for posting an example file. It is appreciated, and the best way to get a quick and accurate response. Let me know if you don't know to insert this code, or if you want help with a trigger (the code runs on a button press, or everytime the worksheet changes, or etc.).

    Please Login or Register  to view this content.
    Last edited by walruseggman; 09-20-2015 at 11:25 AM.
    I'm interested in starting a career working with VBA, if anyone knows of any opportunities!

  3. #3
    Registered User
    Join Date
    09-20-2015
    Location
    Haarlem, The Netherlands
    MS-Off Ver
    Office 2016
    Posts
    16

    Re: Searching for specific words in sheet for attendance list

    Thanks for the fast response! It worked like a charm.

    I have a quick follow up question.. I forgot to mention that all the leaders of the groups are also in the list, but I want to seperate them. In the end I'd like to have a list of the leaders first and then, with 1 blank row, below a list of the kids, all on the same sheet.
    Their function (youth member or leader) is also marked in the main sheet, in column Y.
    Is there any way that the macro can recognize the difference and still make the same lists, only with the leaders and youth members seperated?

    I added the example file once again, now with the functions of the members. Don't know if it helps.
    Hope I don't bother you with any dumb questions.

    Once again thanks for your great help, I'm looking forward to hearing from you
    Attached Files Attached Files

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: Searching for specific words in sheet for attendance list

    Heres another way

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  5. #5
    Registered User
    Join Date
    09-20-2015
    Location
    Haarlem, The Netherlands
    MS-Off Ver
    Office 2016
    Posts
    16

    Re: Searching for specific words in sheet for attendance list

    Awesome! It works perfectly!

    Thanks walruseggman and mike7952 for your quick responses, you helped me out a lot.

    Cheers,
    - Daan

+ 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. Replies: 1
    Last Post: 04-03-2015, 02:17 PM
  2. how can i copy/paste the word which is found during search in the current row wise
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2014, 02:55 AM
  3. Replies: 4
    Last Post: 03-23-2014, 08:14 PM
  4. Replies: 1
    Last Post: 01-30-2013, 04:41 AM
  5. [SOLVED] Searching for a specific value on another sheet and returning the row number.
    By Ataraxicatom in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2012, 07:47 PM
  6. searching excel for specific words
    By confused cookie in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-26-2007, 06:53 AM
  7. [SOLVED] Searching for the presence of specific words
    By Ryan Ferrell in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-25-2005, 06:40 PM

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