+ Reply to Thread
Results 1 to 17 of 17

userfrom consist of 3 list box to insert attendance for employee

  1. #1
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    userfrom consist of 3 list box to insert attendance for employee

    Please kindly find attached file want to make the code
    i have userform to add attendance to attendance sheet starting in row 8 as in sheet attached
    list of operator every time will be appear in list box number one then i select the employee absent list box 2 and transfer to absent list
    and if i transfer the data incorrect i can transfer it again to listbox 1
    then from list box 1 also i select the employee want to transfer to list box 3 and also can return it again
    finally want the sheet come as in my attached file


    this is my design
    if some one have another simple design can do this in simple way with userform can advice me
    Attached Files Attached Files

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: userfrom consist of 3 list box to insert attendance for employee

    Something like this...
    mazan2010-userfrom-consist-of-3-list-box-to-insert-attendance-for-employee-attendance-userform.xlsm

    I haven't coded the Add attendance button yet
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: userfrom consist of 3 list box to insert attendance for employee

    Dear gmr4evr1
    First I would like to thank you for quick reply
    Tomorrow because I didn't have any access to my computer now will check and let you know if it work for me or not
    Best regards

  4. #4
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: userfrom consist of 3 list box to insert attendance for employee

    Because I replayed you from my phone

  5. #5
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: userfrom consist of 3 list box to insert attendance for employee

    And what about add attendance button code

  6. #6
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: userfrom consist of 3 list box to insert attendance for employee

    You're welcome.
    I noticed that I have coded the list box to remove the item selected from listbox1 once it is transferred to one of the other listboxes. If you do not want this to happen, comment out or remove this line..
    Please Login or Register  to view this content.
    from both of the CommandButton codes.
    I haven't coded the add attendance button yet because I wanted to make sure I was doing what you wanted with the other code 1st. I'll work on getting the code done as soon as I can.

  7. #7
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: userfrom consist of 3 list box to insert attendance for employee

    Made listbox1 multi select, so first select all items


    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Files Attached Files

  8. #8
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: userfrom consist of 3 list box to insert attendance for employee

    Looks like LeoTaxi took care of everything for you. Thanks Leo....nice job. In fact, I think you provided me the code ( about a year ago) that I used and adapted for mazan's workbook.

  9. #9
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: userfrom consist of 3 list box to insert attendance for employee

    Dear Leo
    i found your code work good but i note two problem
    first when i press add attendance to sheet its add data even the textbox for date is empty and when i press again its the same data to next column and soon without look to corresponding date
    also when i press button transfer from is also work good from present list to absent but if i want to return it again its remove the data from list box without return it


    Quote Originally Posted by LeoTaxi View Post
    Made listbox1 multi select, so first select all items


    Please Login or Register  to view this content.
    Kind regards
    Leo

  10. #10
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: userfrom consist of 3 list box to insert attendance for employee

    Dear gmr4evr1
    many thanks for your effort
    i test your file an also note that only can transfer one by one and not can retrun data again
    Quote Originally Posted by gmr4evr1 View Post
    Something like this...
    Attachment 528375

    I haven't coded the Add attendance button yet

  11. #11
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: userfrom consist of 3 list box to insert attendance for employee

    please see my attached file with new userform design
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: userfrom consist of 3 list box to insert attendance for employee

    please see this new attached file
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: userfrom consist of 3 list box to insert attendance for employee

    With modifications, all listboxes are multi select
    you can move between listboxes as match if you want


    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: userfrom consist of 3 list box to insert attendance for employee

    thank you dear LeoTaxi
    its work now but only have note when i apply this with my original data its not allow to multiple selection
    also i note in your file if i enter result for the same date two times with different data its accept ( can change the code that show message that this date is inserted before do you wt to proceed )

  15. #15
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: userfrom consist of 3 list box to insert attendance for employee

    thank you dear LeoTaxi
    also if i need to insert date when i press insert attendance instead of date already present in row 8
    i mean also want to insert date with attendance in list box

  16. #16
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: userfrom consist of 3 list box to insert attendance for employee

    Modification in CommandButton2

    if date is not found, date and data is coming in first free column in row 8
    if date is found but there is already data, user can choose to cancel or replace old data by new

    for the multi select you have to change each listbox properties (see picture)

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Attached Files Attached Files

  17. #17
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: userfrom consist of 3 list box to insert attendance for employee

    In this with extra option to choose new date

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Files Attached Files

+ 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. Employee Attendance Tracker Help :)
    By Block118 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-18-2017, 06:48 AM
  2. Employee Attendance help please
    By fredek in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-22-2016, 12:06 PM
  3. [SOLVED] Employee Attendance Template
    By mcanny in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-18-2016, 01:07 PM
  4. Track Employee Attendance
    By maabbas in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-17-2015, 08:17 AM
  5. Need Help - AutoCalculate Attendance Points for employee attendance records
    By switzd0d in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-17-2015, 03:00 PM
  6. Employee Attendance Record
    By PurpleMe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-23-2013, 02:15 AM
  7. employee attendance
    By ruth in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-08-2005, 12:06 PM

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