+ Reply to Thread
Results 1 to 8 of 8

Code for guest list attendance

  1. #1
    Registered User
    Join Date
    07-22-2016
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    6

    Code for guest list attendance

    Hello all!

    EDIT: See attached for a sample workbook with before and after sheets.

    I have a list of people (First name, Last name, E-mail address) that have attended my events in the past. Whenever someone I haven't seen before attends one of my events, their information is added to this master list. Then, for each event (one event per column), people would have an integer value in their row where their information resides if they attended the event specified for that column.

    I want to make some VBA script that would ask me to enter multiple first and last names, ask for an integer value, and then have it look through this master list and automatically insert this integer in a new column at the end of the spreadsheet for where it matches a first and last name on the master sheet to a first and last name given in the list I gave the script. If a first and last name is not found on the master list but is in the list that the script received, the script would automatically add this new person to the end of the master list and then add the integer value to the new column it has been using since execution.


    I'd really appreciate any assistance in getting this written as I'm a newbie when it comes to VBA code.
    Attached Files Attached Files
    Last edited by jrausch2; 09-19-2016 at 12:46 PM. Reason: adding sample

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,897

    Re: Code for guest list attendance

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    07-22-2016
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    6

    Re: Code for guest list attendance

    Edited original post to add example workbook

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

    Re: Code for guest list attendance

    Maybe:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-22-2016
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    6

    Re: Code for guest list attendance

    Hi John,

    Can you please explain to me exactly what this block of code is doing? Also, is it possible for it to accept in the InputBox multiple names and store them into an array, looping through its find logic?

    Please Login or Register  to view this content.
    Quote Originally Posted by JOHN H. DAVIS View Post
    Maybe:

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

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

    Re: Code for guest list attendance

    It finds the first name in Column A and the second name in Column B. If the row numbers match then it puts the index number in a new column to the right. Otherwise it adds the new first name and last name to the current list at the bottom. I thought that was what you were looking for too happen.

  7. #7
    Registered User
    Join Date
    07-22-2016
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    6

    Re: Code for guest list attendance

    Quote Originally Posted by JOHN H. DAVIS View Post
    It finds the first name in Column A and the second name in Column B. If the row numbers match then it puts the index number in a new column to the right. Otherwise it adds the new first name and last name to the current list at the bottom. I thought that was what you were looking for too happen.
    Yes, that is the desired outcome, but this needs to be able to accept multiple names such that I copy and paste a list of first names, a list of last names, one index number for them, and then it loops through the lookup until the list inputted is exhausted.

  8. #8
    Registered User
    Join Date
    07-22-2016
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    6

    Re: Code for guest list attendance

    Can anyone else assist?

+ 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. [SOLVED] Guest list - search and check off
    By databasef in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2016, 11:38 AM
  2. guest list wanting to create groups
    By Teenie11357 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-25-2014, 05:19 PM
  3. Replies: 1
    Last Post: 05-04-2012, 03:10 PM
  4. Replies: 1
    Last Post: 04-06-2007, 11:56 PM
  5. Does anyone know of a template for a wedding guest list?
    By HarborMaster in forum Excel General
    Replies: 0
    Last Post: 05-03-2005, 06:06 PM
  6. How can I set up a guest list counter & tracker?
    By becca in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-21-2005, 08:07 PM
  7. Guest List
    By MattRowley in forum Excel General
    Replies: 2
    Last Post: 04-09-2005, 04:41 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