+ Reply to Thread
Results 1 to 9 of 9

Need vba to list out emp names in listbox and do one or multiple select push to leave type

  1. #1
    Forum Contributor
    Join Date
    06-10-2014
    Location
    CANADA
    MS-Off Ver
    2016
    Posts
    118

    Need vba to list out emp names in listbox and do one or multiple select push to leave type

    hi experts

    i have emp data list i want create attedence tracker for team more friendly user,

    i created userform Where i want list out names in listbox, want to copy one or more select option in listbox what are name selected assisgn to leave type by click the command button in absent below.
    if 2 employe select and click sick leave it should update as sick leave at back up sheet tracker

    there is two team australia and usa i want different section of emp list for userform1 for australia userform2 for usa

    once click command button leave type it should store to Tracker list in E:E column
    For present if click all present all employer present,
    if click rest of all present who are not select for absent those emp are present


    find the attachment
    Attached Files Attached Files

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Need vba to list out emp names in listbox and do one or multiple select push to leave

    attached is first bit - populating listboxes - do you intend overwriting columns 'C:E' with subsequent entries or have you in mind a method of extending the table to capture all entries ?
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  3. #3
    Forum Contributor
    Join Date
    06-10-2014
    Location
    CANADA
    MS-Off Ver
    2016
    Posts
    118

    Re: Need vba to list out emp names in listbox and do one or multiple select push to leave

    This is action for day to day activity update by team lead who are present and absent, Data fill into row from where last row finished.
    Name Col updates from list box selection of number
    Department col update from Emp_list vlookup
    Location col update from Emp_list vlookup
    Leave Type col update from type of leave command button along with selective Emp in list box.

    if 3 person gone for sick leave, select those 3 person, click sick command button.

    find the attachment with explanation
    Attached Files Attached Files
    Last edited by MicroTees; 12-07-2022 at 05:57 PM. Reason: file missing

  4. #4
    Forum Contributor
    Join Date
    06-10-2014
    Location
    CANADA
    MS-Off Ver
    2016
    Posts
    118

    Re: Need vba to list out emp names in listbox and do one or multiple select push to leave

    Even if you can make more simple , just do your way i am happy get report by any way

  5. #5
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Need vba to list out emp names in listbox and do one or multiple select push to leave

    try the attached - done for the 'Australia' form - you should now be able to replicate the code for the 'USA' userform if all the command buttons are the same.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    06-10-2014
    Location
    CANADA
    MS-Off Ver
    2016
    Posts
    118

    Re: Need vba to list out emp names in listbox and do one or multiple select push to leave

    Thanks alot sir for your time spend on my thread , bringout easy,Its enough to carry forward as legitimate tracker. i have small request who are select for present rest of all present, i want mark them in tracker as present. its show blank

  7. #7
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Need vba to list out emp names in listbox and do one or multiple select push to leave

    your small mod done, also the 'USA' userform is now coded for use, I have not fully tested, it is getting an extra row with date in (but this overwrites O.K. with the next day series of entries.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    06-10-2014
    Location
    CANADA
    MS-Off Ver
    2016
    Posts
    118

    Re: Need vba to list out emp names in listbox and do one or multiple select push to leave

    Thanks alot sir it works!!! solved

  9. #9
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Need vba to list out emp names in listbox and do one or multiple select push to leave

    thanks for the feedback and added rep point - glad to have helped.

+ 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. Multiple Select Listbox Comma Separated List with Filtering
    By StephenieG in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2020, 01:18 PM
  2. [SOLVED] Match names with leave type and date
    By acsishere in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-31-2019, 10:50 AM
  3. [SOLVED] Listbox select all items in list box
    By ricklou in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-10-2017, 05:48 AM
  4. Need to Push a List of Names to Master Spreadsheet
    By BYizz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-15-2013, 01:10 AM
  5. Can i select multiple names from a list
    By maximpinto in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-24-2009, 03:15 AM
  6. How to type to select something in a Drop down list?
    By Djanvk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-07-2008, 12:56 AM
  7. [SOLVED] get a list of sheet names onto a listbox on a form
    By Grd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2005, 05:05 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