+ Reply to Thread
Results 1 to 5 of 5

Attendance Userform Excel VBA code

  1. #1
    Registered User
    Join Date
    03-23-2015
    Location
    India
    MS-Off Ver
    MS Office 2007
    Posts
    33

    Attendance Userform Excel VBA code

    Dear Members,

    I request you to help me with Excel VBA code.

    I have a Excel sheet with Horizontal date rows and vertical Members list.

    Horizontal Date row starts from B1 to 365 days ( but here in sample Excel sheet uploaded I have given only 1 month for easy display on screen)

    Vertical Members column starts from A2 to A...... ( but here in sample Excel sheet uploaded I have given only 20 members for easy display on screen)

    The userform1 contains 2 comboBoxes and 1 Command button.

    1st ComboBox for Members list
    2nd ComboBox for Date List (dd/mm/yyyy) In our country we write date first, then month & then Year

    When command button is clicked the word "P" is entered with reference to member's name (ComboBox1)and selected date (ComboBox2) into the specified cell. ("P" stands for Present)

    (Note:- Whenever I use the code "Userform_Initialize" along with other codes for different work, the Command button gets Hanged or Freezes)
    Can we avoid "Userform_Initialize" here.

    Please It my request to you for the VBA code.

    Attached Excel sheet with userform1

    Regards,
    Mukhtar56
    (Country - India)
    Attached Files Attached Files

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Attendance Userform Excel VBA code

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    03-23-2015
    Location
    India
    MS-Off Ver
    MS Office 2007
    Posts
    33

    Re: Attendance Userform Excel VBA code

    Dear Bakerman2,

    How can I increase the date list in Combobox2 uptil 2025. In the list it is only for 1 year 2018.
    The whole code is fine and working perfectly.
    Lots of thanks and grateful to you for the help you gave so fast.

    Regards,
    Mukhtar56
    (Country - India)

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Attendance Userform Excel VBA code

    You can do this by increasing the red number in following code by 365 for each year.
    Please Login or Register  to view this content.
    Glad to help and thanks for rep+.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Last edited by bakerman2; 02-21-2018 at 06:40 AM.

  5. #5
    Registered User
    Join Date
    03-23-2015
    Location
    India
    MS-Off Ver
    MS Office 2007
    Posts
    33

    Re: Attendance Userform Excel VBA code

    Dear Bakerman2,

    Again Thanks to you for the help. I increased the value to 2922 to get date upto 31st Dec 2025.
    Lots of thanks.
    Regards,
    Mukhtar56
    (Country - India)

+ 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. Code for guest list attendance
    By jrausch2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-22-2016, 09:17 AM
  2. Barecode ou QR code Attendance
    By Captain D in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-10-2016, 04:11 AM
  3. Bar Code Attendance Tracker
    By pastor gadget in forum Excel General
    Replies: 4
    Last Post: 05-31-2016, 09:51 AM
  4. [SOLVED] Formula to replicate attendance Code in Calendar
    By mmartinezq202 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-27-2016, 11:12 AM
  5. Replies: 10
    Last Post: 03-17-2016, 05:34 AM
  6. How to make userform for attendance
    By danieljoachim in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-10-2015, 08:26 PM
  7. URGENTLY need a code to create a Attendance report.
    By raghavnrrp in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-14-2012, 06:17 AM

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